diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/SparkRunConfigurationAction.kt b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/SparkRunConfigurationAction.kt index 1072f5f3c1..444865250d 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/SparkRunConfigurationAction.kt +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/spark/run/action/SparkRunConfigurationAction.kt @@ -50,12 +50,11 @@ abstract class SparkRunConfigurationAction : AzureAnAction, ILogger { RunnerRegistry.getInstance().getRunner(runExecutor.id, setting.configuration) != null override fun update(actionEvent: AnActionEvent) { - super.update(actionEvent) + val presentation = actionEvent.presentation.apply { isEnabled = false } val project = actionEvent.project ?: return val runManagerEx = RunManagerEx.getInstanceEx(project) val selectedConfigSettings = runManagerEx.selectedConfiguration ?: return - val presentation = actionEvent.presentation presentation.isEnabled = canRun(selectedConfigSettings) }