mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Convert _notification methods to switch - Chunk C
This commit is contained in:
parent
98b97d34df
commit
6553f5c242
37 changed files with 378 additions and 327 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue