Przeglądaj źródła

Update Node dock when theme changes

Haoyu Qiu 1 rok temu
rodzic
commit
7187a82cfe
2 zmienionych plików z 3 dodań i 0 usunięć
  1. 2 0
      editor/connections_dialog.cpp
  2. 1 0
      editor/groups_editor.cpp

+ 2 - 0
editor/connections_dialog.cpp

@@ -1377,6 +1377,8 @@ void ConnectionsDock::_notification(int p_what) {
 			slot_menu->set_item_icon(slot_menu->get_item_index(SLOT_MENU_DISCONNECT), get_editor_theme_icon(SNAME("Unlinked")));
 
 			tree->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
+
+			update_tree();
 		} break;
 
 		case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {

+ 1 - 0
editor/groups_editor.cpp

@@ -369,6 +369,7 @@ void GroupsEditor::_notification(int p_what) {
 		case NOTIFICATION_THEME_CHANGED: {
 			filter->set_right_icon(get_editor_theme_icon("Search"));
 			add->set_icon(get_editor_theme_icon("Add"));
+			_update_tree();
 		} break;
 		case NOTIFICATION_VISIBILITY_CHANGED: {
 			if (groups_dirty && is_visible_in_tree()) {