Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
asaaki committed Feb 13, 2022
1 parent 934d599 commit 932ad01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/desktop/src/user_window_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 932ad01

Please sign in to comment.