Browse Source

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
Rémi Verschelde 3 years ago
parent
commit
91c62fb856
1 changed files with 5 additions and 0 deletions
  1. 5 0
      editor/editor_feature_profile.cpp

+ 5 - 0
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;
 	}
 }