From 5e96faf26f48af4eacdbefecb80a3a5e0905c512 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Wed, 2 May 2012 22:53:55 +0200 Subject: [PATCH] disable action while project is starting --- .../src/com/intellij/execution/runners/RestartAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/execution/runners/RestartAction.java b/platform/lang-impl/src/com/intellij/execution/runners/RestartAction.java index 9571d8ca97da..f34291e9113c 100644 --- a/platform/lang-impl/src/com/intellij/execution/runners/RestartAction.java +++ b/platform/lang-impl/src/com/intellij/execution/runners/RestartAction.java @@ -94,7 +94,7 @@ public class RestartAction extends AnAction implements DumbAware { } presentation.setIcon(isRunning ? STOP_AND_START_ICON : myIcon); - presentation.setEnabled(true); + presentation.setEnabled(!ExecutorRegistry.getInstance().isStarting(myEnvironment.getProject(), myExecutor.getId(), myRunner.getRunnerId())); } public void registerShortcut(final JComponent component) {