summaryrefslogtreecommitdiffstats
path: root/glutin
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-07-12 22:28:18 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-07-12 22:28:18 +0200
commit31997d255f263a0f47f5af0d8560f3d5bd37f077 (patch)
tree0413f22ec8052f0a1e310b12a4f5c4dedb883e81 /glutin
parentb3ff522c182590ffcd03113b5147fa4599559059 (diff)
downloadiced-31997d255f263a0f47f5af0d8560f3d5bd37f077.tar.gz
iced-31997d255f263a0f47f5af0d8560f3d5bd37f077.tar.bz2
iced-31997d255f263a0f47f5af0d8560f3d5bd37f077.zip
Store and synchronize `Menu` in `application::State`
Diffstat (limited to 'glutin')
-rw-r--r--glutin/src/application.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/glutin/src/application.rs b/glutin/src/application.rs
index a8e5dbf9..279b6c77 100644
--- a/glutin/src/application.rs
+++ b/glutin/src/application.rs
@@ -52,11 +52,14 @@ where
runtime.track(subscription);
let context = {
- let builder = settings.window.into_builder(
- &application.title(),
- application.mode(),
- event_loop.primary_monitor(),
- );
+ let builder = settings
+ .window
+ .into_builder(
+ &application.title(),
+ application.mode(),
+ event_loop.primary_monitor(),
+ )
+ .with_menu(Some(conversion::menu(&application.menu())));
let context = ContextBuilder::new()
.with_vsync(true)