summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-05 23:29:06 +0200
committerGitHub <noreply@github.com>2022-08-05 23:29:06 +0200
commit91c62fb85674171b0524b2152347aa1435b45b8d (patch)
tree056bdcfa9452b843ec40de227872a0cf311773f7
parent15d1af11e2008512f4aaa32f731994b22b074636 (diff)
parentbd5ad943b4929c23dc85a4c052dd6b7680e4dcf6 (diff)
Merge pull request #63963 from YuriSizov/editor-feature-profiles-like-it-dark-and-damp
Rebuild the trees in the `EditorFeatureProfile` dialog when the editor theme changes
-rw-r--r--editor/editor_feature_profile.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}
}