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
@ -93,16 +93,16 @@ impl Plugin for WindowPlugin {
|
|||||||
|
|
||||||
match self.exit_condition {
|
match self.exit_condition {
|
||||||
ExitCondition::OnPrimaryClosed => {
|
ExitCondition::OnPrimaryClosed => {
|
||||||
app.add_system(exit_on_primary_closed);
|
app.add_system_to_stage(CoreStage::PostUpdate, exit_on_primary_closed);
|
||||||
}
|
}
|
||||||
ExitCondition::OnAllClosed => {
|
ExitCondition::OnAllClosed => {
|
||||||
app.add_system(exit_on_all_closed);
|
app.add_system_to_stage(CoreStage::PostUpdate, exit_on_all_closed);
|
||||||
}
|
}
|
||||||
ExitCondition::DontExit => {}
|
ExitCondition::DontExit => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.close_when_requested {
|
if self.close_when_requested {
|
||||||
app.add_system_to_stage(CoreStage::First, close_when_requested);
|
app.add_system(close_when_requested);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register event types
|
// Register event types
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user