macOS: fix panic during drag_window
Return error from it instead of unwrapping.
This commit is contained in:
parent
fb6b1d487b
commit
a5f5ce6a3d
3 changed files with 7 additions and 5 deletions
|
|
@ -284,8 +284,7 @@ impl CoreWindow for Window {
|
|||
}
|
||||
|
||||
fn drag_window(&self) -> Result<(), RequestError> {
|
||||
self.maybe_wait_on_main(|delegate| delegate.drag_window());
|
||||
Ok(())
|
||||
self.maybe_wait_on_main(|delegate| delegate.drag_window())
|
||||
}
|
||||
|
||||
fn drag_resize_window(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue