pub fn exit_on_all_closed(
app_exit_writer: MessageWriter<'_, AppExit>,
windows: Query<'_, '_, &Window>,
)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 behavior, set close_when_requested (on the WindowPlugin) to false.
Ensure that you read the caveats documented on that field if doing so.