diff options
author | 2023-07-24 14:32:59 -0700 | |
---|---|---|
committer | 2023-07-24 14:32:59 -0700 | |
commit | 83c7870c569a2976923ee6243a19813094d44673 (patch) | |
tree | 70e3263bd9c7ac02ed8107d854edfccb5e90245f /winit/src/settings.rs | |
parent | d53ccc857da4d4cda769904342aeb5a82a64f146 (diff) | |
download | iced-83c7870c569a2976923ee6243a19813094d44673.tar.gz iced-83c7870c569a2976923ee6243a19813094d44673.tar.bz2 iced-83c7870c569a2976923ee6243a19813094d44673.zip |
Moved `exit_on_close_request` to window settings. This now controls whether each INDIVIDUAL window should close on CloseRequested events.
Diffstat (limited to '')
-rw-r--r-- | winit/src/settings.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 2b846fbd..c0b3b047 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -1,6 +1,6 @@ //! Configure your application. -use crate::conversion; use crate::core::window; +use crate::conversion; use winit::monitor::MonitorHandle; use winit::window::WindowBuilder; @@ -21,16 +21,6 @@ pub struct Settings<Flags> { /// /// [`Application`]: crate::Application pub flags: Flags, - - /// Whether the [`Application`] should exit when the user requests the - /// window to close (e.g. the user presses the close button). - /// - /// With a [`multi_window::Application`] this will instead be used to determine whether the - /// application should exit when the "main"" window is closed, i.e. the first window created on - /// app launch. - /// - /// [`Application`]: crate::Application - pub exit_on_close_request: bool, } /// Converts the window settings into a `WindowBuilder` from `winit`. |