diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-16 20:58:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 20:58:55 +0100 |
commit | 009254d87c1de573d2abeb273676f22d0bdfc67f (patch) | |
tree | 6123649c85c0a6d513224901de8a25bc068c4901 /editor/plugins/shader_file_editor_plugin.cpp | |
parent | 5d5f80b5295479ca4e12989394b3a2af8819a1ee (diff) | |
parent | 6553f5c242865f9aadbe2fdab6db6876c44ac472 (diff) |
Merge pull request #58187 from jakobbouchard/notification-switch-chunk-c
Convert _notification methods to switch - Chunk C
Diffstat (limited to 'editor/plugins/shader_file_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/shader_file_editor_plugin.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/editor/plugins/shader_file_editor_plugin.cpp b/editor/plugins/shader_file_editor_plugin.cpp index 6d761729b0..4458555de2 100644 --- a/editor/plugins/shader_file_editor_plugin.cpp +++ b/editor/plugins/shader_file_editor_plugin.cpp @@ -200,10 +200,12 @@ void ShaderFileEditor::_update_options() { } void ShaderFileEditor::_notification(int p_what) { - if (p_what == NOTIFICATION_WM_WINDOW_FOCUS_IN) { - if (is_visible_in_tree() && shader_file.is_valid()) { - _update_options(); - } + switch (p_what) { + case NOTIFICATION_WM_WINDOW_FOCUS_IN: { + if (is_visible_in_tree() && shader_file.is_valid()) { + _update_options(); + } + } break; } } |