Store and synchronize Menu in application::State
This commit is contained in:
parent
b3ff522c18
commit
31997d255f
5 changed files with 64 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue