summaryrefslogtreecommitdiff
path: root/modules/gdnative/gdnative_library_singleton_editor.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-16 20:58:55 +0100
committerGitHub <noreply@github.com>2022-02-16 20:58:55 +0100
commit009254d87c1de573d2abeb273676f22d0bdfc67f (patch)
tree6123649c85c0a6d513224901de8a25bc068c4901 /modules/gdnative/gdnative_library_singleton_editor.cpp
parent5d5f80b5295479ca4e12989394b3a2af8819a1ee (diff)
parent6553f5c242865f9aadbe2fdab6db6876c44ac472 (diff)
Merge pull request #58187 from jakobbouchard/notification-switch-chunk-c
Convert _notification methods to switch - Chunk C
Diffstat (limited to 'modules/gdnative/gdnative_library_singleton_editor.cpp')
-rw-r--r--modules/gdnative/gdnative_library_singleton_editor.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/gdnative/gdnative_library_singleton_editor.cpp b/modules/gdnative/gdnative_library_singleton_editor.cpp
index e0079f93ee..ce1f41bdf1 100644
--- a/modules/gdnative/gdnative_library_singleton_editor.cpp
+++ b/modules/gdnative/gdnative_library_singleton_editor.cpp
@@ -183,10 +183,12 @@ void GDNativeLibrarySingletonEditor::_item_edited() {
}
void GDNativeLibrarySingletonEditor::_notification(int p_what) {
- if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
- if (is_visible_in_tree()) {
- _update_libraries();
- }
+ switch (p_what) {
+ case NOTIFICATION_VISIBILITY_CHANGED: {
+ if (is_visible_in_tree()) {
+ _update_libraries();
+ }
+ } break;
}
}