diff --git a/src/main/java/com/checkmarx/intellij/tool/window/actions/CancelScanAction.java b/src/main/java/com/checkmarx/intellij/tool/window/actions/CancelScanAction.java index e6b5097a..b75be7eb 100644 --- a/src/main/java/com/checkmarx/intellij/tool/window/actions/CancelScanAction.java +++ b/src/main/java/com/checkmarx/intellij/tool/window/actions/CancelScanAction.java @@ -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); } }