Skip to content

Commit 5357e15

Browse files
authored
Add Clone to WinitSettings (#12787)
# Objective - Allow cloning `WinitSettings`. I use this in [bevy_worldswap](https://github.com/UkoeHB/bevy_worldswap) when synchronizing secondary app window state. ## Solution - Add `Clone` to `WinitSettings`. --- ## Changelog - Added `Clone` to `WinitSettings`.
1 parent 61b4b38 commit 5357e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_winit/src/winit_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use bevy_ecs::system::Resource;
22
use bevy_utils::Duration;
33

44
/// Settings for the [`WinitPlugin`](super::WinitPlugin).
5-
#[derive(Debug, Resource)]
5+
#[derive(Debug, Resource, Clone)]
66
pub struct WinitSettings {
77
/// Determines how frequently the application can update when it has focus.
88
pub focused_mode: UpdateMode,

0 commit comments

Comments
 (0)