mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 11:01:54 +00:00
switch return type of accepts_first_mouse
This commit is contained in:
parent
bb24f1142f
commit
8dcaa81aad
1 changed files with 5 additions and 1 deletions
|
@ -1438,7 +1438,11 @@ extern "C" fn accepts_first_mouse(this: &Object, _: Sel, _: id) -> BOOL {
|
|||
unsafe {
|
||||
let state = get_window_state(this);
|
||||
let state_borrow = state.as_ref().borrow();
|
||||
return state_borrow.kind == WindowKind::PopUp;
|
||||
return if state_borrow.kind == WindowKind::PopUp {
|
||||
YES
|
||||
} else {
|
||||
NO
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue