1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add profiler autostart indicator to EditorRunBar

This commit is contained in:
Hendrik Brucker
2024-09-26 16:31:00 +02:00
parent b9437c3938
commit 9f8bbe43ee
7 changed files with 74 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
#include "core/os/os.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/gui/editor_run_bar.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/check_box.h"
@@ -227,6 +228,7 @@ void EditorNetworkProfiler::_clear_pressed() {
void EditorNetworkProfiler::_autostart_toggled(bool p_toggled_on) {
EditorSettings::get_singleton()->set_project_metadata("debug_options", "autostart_network_profiler", p_toggled_on);
EditorRunBar::get_singleton()->update_profiler_autostart_indicator();
}
void EditorNetworkProfiler::_replication_button_clicked(TreeItem *p_item, int p_column, int p_idx, MouseButton p_button) {