diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-08-18 11:02:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-18 11:02:50 +0200 |
| commit | 7f7e0f9dfc7b880b82275a70ff644ffa6324ca2d (patch) | |
| tree | 6cf61033cf85bc36baa5c8d27ff7e0d16eeefe80 /editor/node_dock.cpp | |
| parent | 5c853a45e632b0d912f3616c749120f28e29b66a (diff) | |
| parent | 96a256557c64aa15a6f016ffe2c3ed2c714e4e45 (diff) | |
Merge pull request #31439 from YeldhamDev/node_dock_minor_improvements
Minor improvements to the Node dock
Diffstat (limited to 'editor/node_dock.cpp')
| -rw-r--r-- | editor/node_dock.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/editor/node_dock.cpp b/editor/node_dock.cpp index 1c0151ed0a..d6df3bd369 100644 --- a/editor/node_dock.cpp +++ b/editor/node_dock.cpp @@ -56,10 +56,7 @@ void NodeDock::_bind_methods() { void NodeDock::_notification(int p_what) { - if (p_what == NOTIFICATION_ENTER_TREE) { - connections_button->set_icon(get_icon("Signals", "EditorIcons")); - groups_button->set_icon(get_icon("Groups", "EditorIcons")); - } else if (p_what == EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED) { + if (p_what == NOTIFICATION_ENTER_TREE || p_what == NOTIFICATION_THEME_CHANGED) { connections_button->set_icon(get_icon("Signals", "EditorIcons")); groups_button->set_icon(get_icon("Groups", "EditorIcons")); } @@ -131,7 +128,7 @@ NodeDock::NodeDock() { groups->hide(); select_a_node = memnew(Label); - select_a_node->set_text(TTR("Select a Node to edit Signals and Groups.")); + select_a_node->set_text(TTR("Select a single node to edit its signals and groups.")); select_a_node->set_v_size_flags(SIZE_EXPAND_FILL); select_a_node->set_valign(Label::VALIGN_CENTER); select_a_node->set_align(Label::ALIGN_CENTER); |