Skip to content

Commit

Permalink
Fix autostart indicator going to wrong debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
aryan-11825114 authored and tGautot committed Feb 5, 2025
1 parent d95dd8a commit 03042d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/gui/editor_run_bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ void EditorRunBar::_profiler_autostart_indicator_pressed() {
EditorNode::get_singleton()->get_bottom_panel()->make_item_visible(EditorDebuggerNode::get_singleton(), true);

if (EditorSettings::get_singleton()->get_project_metadata("debug_options", "autostart_profiler", false)) {
EditorDebuggerNode::get_singleton()->get_current_debugger()->switch_to_debugger(2);
} else if (EditorSettings::get_singleton()->get_project_metadata("debug_options", "autostart_visual_profiler", false)) {
EditorDebuggerNode::get_singleton()->get_current_debugger()->switch_to_debugger(3);
} else if (EditorSettings::get_singleton()->get_project_metadata("debug_options", "autostart_visual_profiler", false)) {
EditorDebuggerNode::get_singleton()->get_current_debugger()->switch_to_debugger(4);
} else {
// Switch to the network profiler tab.
EditorDebuggerNode::get_singleton()->get_current_debugger()->switch_to_debugger(7);
EditorDebuggerNode::get_singleton()->get_current_debugger()->switch_to_debugger(8);
}
}

Expand Down

0 comments on commit 03042d7

Please sign in to comment.