From bd5ad943b4929c23dc85a4c052dd6b7680e4dcf6 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Fri, 5 Aug 2022 19:17:58 +0300 Subject: Rebuild the trees in the EditorFeatureProfile dialog when the editor theme changes --- editor/editor_feature_profile.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/editor_feature_profile.cpp b/editor/editor_feature_profile.cpp index ab6dec7eeb..f0bf9fd5b3 100644 --- a/editor/editor_feature_profile.cpp +++ b/editor/editor_feature_profile.cpp @@ -324,6 +324,11 @@ void EditorFeatureProfileManager::_notification(int p_what) { } _update_profile_list(current_profile); } break; + + case NOTIFICATION_THEME_CHANGED: { + // Make sure that the icons are correctly adjusted if the theme's lightness was switched. + _update_selected_profile(); + } break; } } -- cgit v1.2.3