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/application.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/application.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index 5c45bbda..cffcb884 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -136,6 +136,8 @@ where let target = settings.window.platform_specific.target.clone(); let should_be_visible = settings.window.visible; + let exit_on_close_request = settings.window.exit_on_close_request; + let builder = settings::window_builder( settings.window, &application.title(), @@ -197,7 +199,7 @@ where init_command, window, should_be_visible, - settings.exit_on_close_request, + exit_on_close_request, )); let mut context = task::Context::from_waker(task::noop_waker_ref()); |