浏览代码

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 年之前
父节点
当前提交
91c62fb856
共有 1 个文件被更改,包括 5 次插入0 次删除
  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;
 	}
 }