mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Remove some unneeded hacks for old OS X versions
This commit is contained in:
@@ -241,13 +241,6 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||
}
|
||||
|
||||
- (void)windowDidExitFullScreen:(NSNotification*)notification {
|
||||
// For certain versions of macOS the fullscreen button will automatically show
|
||||
// after exiting fullscreen mode.
|
||||
if (!shell_->has_frame()) {
|
||||
NSWindow* window = shell_->GetNativeWindow();
|
||||
[[window standardWindowButton:NSWindowFullScreenButton] setHidden:YES];
|
||||
}
|
||||
|
||||
shell_->NotifyWindowLeaveFullScreen();
|
||||
}
|
||||
|
||||
@@ -724,11 +717,6 @@ void NativeWindowMac::SetFullScreen(bool fullscreen) {
|
||||
if (fullscreen == IsFullscreen())
|
||||
return;
|
||||
|
||||
if (!base::mac::IsOSLionOrLater()) {
|
||||
LOG(ERROR) << "Fullscreen mode is only supported above Lion";
|
||||
return;
|
||||
}
|
||||
|
||||
[window_ toggleFullScreen:nil];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user