diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-16 15:26:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 15:26:02 +0100 |
commit | b5c0a892d45b1a9df10aaf0f468252925ea2a4b9 (patch) | |
tree | ca006460a31bf1ec8031e40952394a39e824d5f0 /editor/connections_dialog.cpp | |
parent | eeda603355bdaf76d138d2646b3e4316924efe29 (diff) | |
parent | dcd2a92af3cc85b50ee2c02dc64589da6d429e8c (diff) |
Merge pull request #58163 from jmb462/notification-chunk-A
Diffstat (limited to 'editor/connections_dialog.cpp')
-rw-r--r-- | editor/connections_dialog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index d4785afcf0..df2a66f182 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -277,8 +277,10 @@ void ConnectDialog::_update_ok_enabled() { } void ConnectDialog::_notification(int p_what) { - if (p_what == NOTIFICATION_ENTER_TREE) { - bind_editor->edit(cdbinds); + switch (p_what) { + case NOTIFICATION_ENTER_TREE: { + bind_editor->edit(cdbinds); + } break; } } @@ -938,6 +940,7 @@ void ConnectionsDock::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: { search_box->set_right_icon(get_theme_icon(SNAME("Search"), SNAME("EditorIcons"))); } break; + case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { update_tree(); } break; |