summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2022-08-05 19:17:58 +0300
committerYuri Sizov <yuris@humnom.net>2022-08-05 19:17:58 +0300
commitbd5ad943b4929c23dc85a4c052dd6b7680e4dcf6 (patch)
treebde19cac315ca79989ff2653cd3fa21e9bef0531
parentf5a89bf460a8250ca6b0a1a5fdba4bcb70df91cf (diff)
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;
}
}