diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-16 16:39:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 16:39:23 +0100 |
commit | 33c7f52f361961c64432cfd772909ed3ba76cd51 (patch) | |
tree | 6c86397c3797381550815c79938522a3915d58df /editor/node_dock.cpp | |
parent | b5c0a892d45b1a9df10aaf0f468252925ea2a4b9 (diff) | |
parent | 8824b6c5e9dc6a24a17452ded0c800ec267f812f (diff) |
Merge pull request #58169 from megalobyte/update-notificatin-if-to-switch-batch-B
Diffstat (limited to 'editor/node_dock.cpp')
-rw-r--r-- | editor/node_dock.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/node_dock.cpp b/editor/node_dock.cpp index 9b06435648..18545d3c9a 100644 --- a/editor/node_dock.cpp +++ b/editor/node_dock.cpp @@ -52,9 +52,12 @@ void NodeDock::_bind_methods() { } void NodeDock::_notification(int p_what) { - if (p_what == NOTIFICATION_ENTER_TREE || p_what == NOTIFICATION_THEME_CHANGED) { - connections_button->set_icon(get_theme_icon(SNAME("Signals"), SNAME("EditorIcons"))); - groups_button->set_icon(get_theme_icon(SNAME("Groups"), SNAME("EditorIcons"))); + switch (p_what) { + case NOTIFICATION_ENTER_TREE: + case NOTIFICATION_THEME_CHANGED: { + connections_button->set_icon(get_theme_icon(SNAME("Signals"), SNAME("EditorIcons"))); + groups_button->set_icon(get_theme_icon(SNAME("Groups"), SNAME("EditorIcons"))); + } break; } } |