diff options
| author | 2022-12-15 05:28:11 +0100 | |
|---|---|---|
| committer | 2022-12-15 05:28:11 +0100 | |
| commit | d2d18479acd987b4a4f6a125c0dda7b2a6661df4 (patch) | |
| tree | c93a370639111a76ce64a9b9489ccd430df812a6 /glutin | |
| parent | e0c728c62c6fd9496de1d442e7476e24fc5e9023 (diff) | |
| parent | b5ab50b2a8a869d8d433d9e13878c1cf1d721414 (diff) | |
| download | iced-d2d18479acd987b4a4f6a125c0dda7b2a6661df4.tar.gz iced-d2d18479acd987b4a4f6a125c0dda7b2a6661df4.tar.bz2 iced-d2d18479acd987b4a4f6a125c0dda7b2a6661df4.zip | |
Merge pull request #1606 from iced-rs/feature/window-close
Implement `window::close` action and remove `should_exit`
Diffstat (limited to 'glutin')
| -rw-r--r-- | glutin/src/application.rs | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/glutin/src/application.rs b/glutin/src/application.rs index f474cbba..3e9d11f9 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -200,6 +200,7 @@ async fn run_instance<A, E, C>(      let mut cache = user_interface::Cache::default();      let mut state = application::State::new(&application, context.window());      let mut viewport_version = state.viewport_version(); +    let mut should_exit = false;      application::run_command(          &application, @@ -209,6 +210,7 @@ async fn run_instance<A, E, C>(          init_command,          &mut runtime,          &mut clipboard, +        &mut should_exit,          &mut proxy,          &mut debug,          context.window(), @@ -271,6 +273,7 @@ async fn run_instance<A, E, C>(                          &mut renderer,                          &mut runtime,                          &mut clipboard, +                        &mut should_exit,                          &mut proxy,                          &mut debug,                          &mut messages, @@ -281,8 +284,6 @@ async fn run_instance<A, E, C>(                      // Update window                      state.synchronize(&application, context.window()); -                    let should_exit = application.should_exit(); -                      user_interface =                          ManuallyDrop::new(application::build_user_interface(                              &application, | 
