mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use switch consistently in _notification (scene folder)
This commit is contained in:
parent
171021145d
commit
0f5455230c
127 changed files with 2853 additions and 2601 deletions
|
|
@ -616,6 +616,7 @@ void SceneTree::_notification(int p_notification) {
|
|||
get_root()->propagate_notification(p_notification);
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_OS_MEMORY_WARNING:
|
||||
case NOTIFICATION_OS_IME_UPDATE:
|
||||
case NOTIFICATION_WM_ABOUT:
|
||||
|
|
@ -624,13 +625,11 @@ void SceneTree::_notification(int p_notification) {
|
|||
case NOTIFICATION_APPLICATION_PAUSED:
|
||||
case NOTIFICATION_APPLICATION_FOCUS_IN:
|
||||
case NOTIFICATION_APPLICATION_FOCUS_OUT: {
|
||||
get_root()->propagate_notification(p_notification); //pass these to nodes, since they are mirrored
|
||||
// Pass these to nodes, since they are mirrored.
|
||||
get_root()->propagate_notification(p_notification);
|
||||
} break;
|
||||
|
||||
default:
|
||||
break;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
void SceneTree::set_auto_accept_quit(bool p_enable) {
|
||||
accept_quit = p_enable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue