Remove window::Id::MAIN constant
This commit is contained in:
parent
92e08c8f07
commit
c5f4bebeda
6 changed files with 10 additions and 11 deletions
|
|
@ -149,9 +149,10 @@ impl Todos {
|
|||
widget::focus_next()
|
||||
}
|
||||
}
|
||||
Message::ToggleFullscreen(mode) => {
|
||||
window::change_mode(window::Id::MAIN, mode)
|
||||
}
|
||||
Message::ToggleFullscreen(mode) => window::get_latest()
|
||||
.and_then(move |window| {
|
||||
window::change_mode(window, mode)
|
||||
}),
|
||||
Message::Loaded(_) => Command::none(),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue