Merge pull request #114680 from MartinDelille/keep-script-editor-focus-when-run
Prevent the dock from stealing focus when running the project.
This commit is contained in:
@@ -5349,9 +5349,9 @@ void EditorNode::_project_run_started() {
|
||||
|
||||
int action_on_play = EDITOR_GET("run/bottom_panel/action_on_play");
|
||||
if (action_on_play == ACTION_ON_PLAY_OPEN_OUTPUT) {
|
||||
editor_dock_manager->focus_dock(log);
|
||||
editor_dock_manager->open_dock(log, true);
|
||||
} else if (action_on_play == ACTION_ON_PLAY_OPEN_DEBUGGER) {
|
||||
editor_dock_manager->focus_dock(EditorDebuggerNode::get_singleton());
|
||||
editor_dock_manager->open_dock(EditorDebuggerNode::get_singleton(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user