From 105723b7259ac9f05ddffbe3a812504c63d1402d Mon Sep 17 00:00:00 2001 From: Mateus Reis Date: Thu, 21 Dec 2023 18:25:33 +0200 Subject: [PATCH] Fix internal profiling button being visible when disabled --- editor/debugger/editor_profiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/debugger/editor_profiler.cpp b/editor/debugger/editor_profiler.cpp index d54fd62e8cc..074759f8611 100644 --- a/editor/debugger/editor_profiler.cpp +++ b/editor/debugger/editor_profiler.cpp @@ -647,6 +647,7 @@ EditorProfiler::EditorProfiler() { hb->add_child(display_time); display_internal_profiles = memnew(CheckButton(TTR("Display internal functions"))); + display_internal_profiles->set_visible(EDITOR_GET("debugger/profile_native_calls")); display_internal_profiles->set_pressed(false); display_internal_profiles->connect("pressed", callable_mp(this, &EditorProfiler::_internal_profiles_pressed)); hb->add_child(display_internal_profiles);