Fix autostart indicator going to wrong debugger

This commit is contained in:
aryan-11825114 2024-12-20 14:25:57 +05:30
parent 89001f91d2
commit b3e15af8ad

View file

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