Fix: browser window will be resiable when calling window.setResizable(false)
twice.
This commit is contained in:
parent
2eaaad610d
commit
c69002b0dd
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ void NativeWindowMac::SetResizable(bool resizable) {
|
|||
[window_ setStyleMask:[window_ styleMask] | NSResizableWindowMask];
|
||||
} else {
|
||||
[[window_ standardWindowButton:NSWindowZoomButton] setEnabled:NO];
|
||||
[window_ setStyleMask:[window_ styleMask] ^ NSResizableWindowMask];
|
||||
[window_ setStyleMask:[window_ styleMask] & (~NSResizableWindowMask)];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue