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
|
|
@ -177,7 +177,7 @@ fn hotkey(hotkey: keyboard::Hotkey) -> winit::window::Hotkey {
|
|||
///
|
||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||
/// [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
|
||||
pub fn menu<Message>(menu: Menu<Message>) -> winit::window::Menu {
|
||||
pub fn menu<Message>(menu: &Menu<Message>) -> winit::window::Menu {
|
||||
let mut converted = winit::window::Menu::new();
|
||||
|
||||
for item in menu.iter() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue