IDEA-303736 Do not change selected run configuration on stop action in the new UI

GitOrigin-RevId: d4ee5020e6998dbda9a7c125819aaf1c99070f41
This commit is contained in:
Alexey Merkulov
2022-11-08 17:50:31 +00:00
committed by intellij-monorepo-bot
parent 5da456f2e9
commit bc7c1ac1d7
@@ -876,10 +876,6 @@ private class ExecutionReasonableHistoryManager : ProjectPostStartupActivity {
if (reason == RunState.SCHEDULED) {
RunConfigurationStartHistory.getInstance(env.project).register(conf, env.executor.id, reason)
}
val runManager = RunManager.getInstance(env.project)
if (reason.isRunningState() && ExperimentalUI.isNewUI() && !runManager.isRunWidgetActive()) {
runManager.selectedConfiguration = conf
}
ActivityTracker.getInstance().inc()
} ?: thisLogger().warn(
"Cannot find persisted configuration of '${env.runnerAndConfigurationSettings}'." +