Revert system menus support
The current implementation has some important issues on Windows. We will reintroduce the feature once we figure them out! I have kept some of the changes in #945, like the new `keyboard::Modifiers` powered by `bitflags`.
This commit is contained in:
parent
93fec8d273
commit
c0ab988842
21 changed files with 19 additions and 673 deletions
|
|
@ -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)
|
||||
|
|
@ -331,16 +328,6 @@ async fn run_instance<A, E, C>(
|
|||
// TODO: Handle animations!
|
||||
// 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,
|
||||
..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue