Fix BrowserWindow.maximize/unmaximize on Mac
This commit is contained in:
parent
a4de40ec89
commit
e1516d4244
1 changed files with 6 additions and 0 deletions
|
@ -602,10 +602,16 @@ bool NativeWindowMac::IsVisible() {
|
|||
}
|
||||
|
||||
void NativeWindowMac::Maximize() {
|
||||
if (IsMaximized())
|
||||
return;
|
||||
|
||||
[window_ zoom:nil];
|
||||
}
|
||||
|
||||
void NativeWindowMac::Unmaximize() {
|
||||
if (!IsMaximized())
|
||||
return;
|
||||
|
||||
[window_ zoom:nil];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue