[Debugger] Move quit shortcut configuration to the SceneDebugger

This commit is contained in:
Fabio Alessandrelli 2024-11-06 16:47:36 +01:00
parent 87318a2fb7
commit 7cd850b909
7 changed files with 55 additions and 37 deletions

View file

@ -1033,6 +1033,9 @@ void ScriptEditorDebugger::start(Ref<RemoteDebuggerPeer> p_peer) {
_update_buttons_state();
emit_signal(SNAME("started"));
Array quit_keys = DebuggerMarshalls::serialize_key_shortcut(ED_GET_SHORTCUT("editor/stop_running_project"));
_put_msg("scene:setup_scene", quit_keys);
if (EditorSettings::get_singleton()->get_project_metadata("debug_options", "autostart_profiler", false)) {
profiler->set_profiling(true);
}