On macOS, fix panic in current_monitor_inner

This commit is contained in:
Xiaopeng Li 2022-11-05 10:30:39 +08:00 committed by GitHub
parent 97d4c7b303
commit 8669c2e8df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 6 deletions

View file

@ -242,7 +242,7 @@ declare_class!(
// Otherwise, we must've reached fullscreen by the user clicking
// on the green fullscreen button. Update state!
None => {
let current_monitor = Some(self.window.current_monitor_inner());
let current_monitor = self.window.current_monitor_inner();
shared_state.fullscreen = Some(Fullscreen::Borderless(current_monitor))
}
}