Merge pull request #86398 from reach-satori/prof-visibility-fix

Fix internal profiling button being visible when disabled in settings
This commit is contained in:
Rémi Verschelde 2024-03-01 14:56:02 +01:00
commit 1e950dea5a
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

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