Skip to content

Commit

Permalink
add logs to check
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Sep 1, 2024
1 parent a7d2c63 commit 612d8cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ public void run(@NotNull ProgressIndicator progressIndicator) {
@Override
public void update(@NotNull AnActionEvent e) {
super.update(e);
System.out.println("I Was Here");

e.getPresentation().setVisible(StartScanAction.getUserHasPermissionsToScan());

PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(Objects.requireNonNull(e.getProject()));
boolean isScanRunning = StringUtils.isNotBlank(propertiesComponent.getValue(Constants.RUNNING_SCAN_ID_PROPERTY));
System.out.println("isScanRunning: " + isScanRunning);
e.getPresentation().setEnabled(isScanRunning);
}
}

0 comments on commit 612d8cb

Please sign in to comment.