소스 검색

Rebuild the trees in the EditorFeatureProfile dialog when the editor theme changes

Yuri Sizov 3 년 전
부모
커밋
bd5ad943b4
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;
 	}
 }