diff options
author | 2021-09-15 15:50:25 +0700 | |
---|---|---|
committer | 2021-09-15 15:50:25 +0700 | |
commit | 099981cfc2f61a1f37e84100592d65babb94fb82 (patch) | |
tree | 1b063e251d92f8bc63f0f27a20e78d178f6bd532 /glutin/src | |
parent | 5870cbb312ec5de1219b6983e09e460419d95912 (diff) | |
parent | c0ab9888426b7d1f2606afafc9dba06eed7f9419 (diff) | |
download | iced-099981cfc2f61a1f37e84100592d65babb94fb82.tar.gz iced-099981cfc2f61a1f37e84100592d65babb94fb82.tar.bz2 iced-099981cfc2f61a1f37e84100592d65babb94fb82.zip |
Merge pull request #1047 from iced-rs/revert-menus
Revert system menus support
Diffstat (limited to 'glutin/src')
-rw-r--r-- | glutin/src/application.rs | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 936f0cce..fa2192d8 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -51,15 +51,12 @@ where let subscription = application.subscription(); let context = { - let builder = settings - .window - .into_builder( - &application.title(), - application.mode(), - event_loop.primary_monitor(), - settings.id, - ) - .with_menu(Some(conversion::menu(&application.menu()))); + let builder = settings.window.into_builder( + &application.title(), + application.mode(), + event_loop.primary_monitor(), + settings.id, + ); let context = ContextBuilder::new() .with_vsync(true) @@ -332,16 +329,6 @@ async fn run_instance<A, E, C>( // Maybe we can use `ControlFlow::WaitUntil` for this. } event::Event::WindowEvent { - event: event::WindowEvent::MenuEntryActivated(entry_id), - .. - } => { - if let Some(message) = - conversion::menu_message(state.menu(), entry_id) - { - messages.push(message); - } - } - event::Event::WindowEvent { event: window_event, .. } => { |