Fix BrowserWindow.maximize/unmaximize on Mac

This commit is contained in:
Milan Burda 2016-04-23 01:15:00 +02:00
parent a4de40ec89
commit e1516d4244

View file

@ -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];
}