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:
Rémi Verschelde 2026-01-10 23:48:07 +01:00
commit 557e009f9d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);
}
}