mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
Make clippy happy
This commit is contained in:
parent
934d5998db
commit
932ad01644
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,9 @@ pub(super) fn handler(
|
|||
Maximize(state) => window.set_maximized(state),
|
||||
MaximizeToggle => window.set_maximized(!window.is_maximized()),
|
||||
Fullscreen(state) => {
|
||||
window.current_monitor().map(|handle| {
|
||||
if let Some(handle) = window.current_monitor() {
|
||||
window.set_fullscreen(state.then(|| WryFullscreen::Borderless(Some(handle))));
|
||||
});
|
||||
}
|
||||
}
|
||||
FocusWindow => window.set_focus(),
|
||||
Resizable(state) => window.set_resizable(state),
|
||||
|
|
Loading…
Reference in a new issue