mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix choose run configuration popup: ensure alternative executor reset
This commit is contained in:
+7
-2
@@ -122,7 +122,12 @@ public class ChooseRunConfigurationAction extends AnAction {
|
||||
|
||||
popup.registerAction("invokeAction", KeyStroke.getKeyStroke("shift ENTER"), new AbstractAction() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
popup.handleSelect(true);
|
||||
try {
|
||||
popup.handleSelect(true);
|
||||
}
|
||||
finally {
|
||||
myCurrentExecutor = null;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -613,7 +618,7 @@ public class ChooseRunConfigurationAction extends AnAction {
|
||||
if (finalChoice && wrapper.available(executor)) {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
if (myAction.getCurrentExecutor() == myAction.getAlternateExecutor()) {
|
||||
if (executor == myAction.getAlternateExecutor()) {
|
||||
PropertiesComponent.getInstance().setValue(myAction.getAdKey(), Boolean.toString(true));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user