Function bevy::window::exit_on_all_closed
[−]pub fn exit_on_all_closed(
app_exit_events: EventWriter<'_, '_, AppExit>,
windows: Res<'_, Windows>
)
Expand description
Exit the application when there are no open windows.
This system is added by the WindowPlugin
in the default configuration.
To disable this behaviour, set close_when_requested
(on the WindowPlugin
) to false
.
Ensure that you read the caveats documented on that field if doing so.