mirror of
https://github.com/bevyengine/bevy
synced 2024-11-29 16:10:19 +00:00
revert stage changed for window closing (#7296)
# Objective
- Fix #7287
## Solution
- Revert stage changed in windows as entities PR for window closing systems
how it was before:
f0c504947c/crates/bevy_window/src/lib.rs (L92-L100)
This commit is contained in:
parent
06ada2e93d
commit
efa2c6edad
1 changed files with 3 additions and 3 deletions
|
@ -93,16 +93,16 @@ impl Plugin for WindowPlugin {
|
|||
|
||||
match self.exit_condition {
|
||||
ExitCondition::OnPrimaryClosed => {
|
||||
app.add_system(exit_on_primary_closed);
|
||||
app.add_system_to_stage(CoreStage::PostUpdate, exit_on_primary_closed);
|
||||
}
|
||||
ExitCondition::OnAllClosed => {
|
||||
app.add_system(exit_on_all_closed);
|
||||
app.add_system_to_stage(CoreStage::PostUpdate, exit_on_all_closed);
|
||||
}
|
||||
ExitCondition::DontExit => {}
|
||||
}
|
||||
|
||||
if self.close_when_requested {
|
||||
app.add_system_to_stage(CoreStage::First, close_when_requested);
|
||||
app.add_system(close_when_requested);
|
||||
}
|
||||
|
||||
// Register event types
|
||||
|
|
Loading…
Reference in a new issue