summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-07-03 00:15:57 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-07-03 00:25:21 +0800
commit7187a82cfe3be9fc5519f7c70e479f53292d7fea (patch)
treea1db56d21188d453e355c423ea56517e326426de
parent9db1a963beae8056cbd30d692d4160d09c10b2dc (diff)
downloadredot-engine-7187a82cfe3be9fc5519f7c70e479f53292d7fea.tar.gz
Update Node dock when theme changes
-rw-r--r--editor/connections_dialog.cpp2
-rw-r--r--editor/groups_editor.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp
index bfc4d91af7..eb0ab1174b 100644
--- a/editor/connections_dialog.cpp
+++ b/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: {
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp
index 18ac4074da..6cfc035fc9 100644
--- a/editor/groups_editor.cpp
+++ b/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()) {