From 9ef8d1959002e22ea3e1ea13f7621197793e6224 Mon Sep 17 00:00:00 2001 From: Gilles Henaux Date: Thu, 10 Apr 2025 22:31:18 +0200 Subject: [PATCH] Fix documentation: incorrect references to the `Update` schedule in `ExitCondition` (#18438) # Objective - The referenced `ScheduleLabel` for `OnPrimaryClosed` and `OnAllClosed` in `ExitCondition` was incorrect ## Solution - Changed `Update` to `PostUpdate` --- crates/bevy_window/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_window/src/lib.rs b/crates/bevy_window/src/lib.rs index 851c8a681f..f54a59a09b 100644 --- a/crates/bevy_window/src/lib.rs +++ b/crates/bevy_window/src/lib.rs @@ -177,11 +177,11 @@ impl Plugin for WindowPlugin { pub enum ExitCondition { /// Close application when the primary window is closed /// - /// The plugin will add [`exit_on_primary_closed`] to [`Update`]. + /// The plugin will add [`exit_on_primary_closed`] to [`PostUpdate`]. OnPrimaryClosed, /// Close application when all windows are closed /// - /// The plugin will add [`exit_on_all_closed`] to [`Update`]. + /// The plugin will add [`exit_on_all_closed`] to [`PostUpdate`]. OnAllClosed, /// Keep application running headless even after closing all windows ///