зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1408118 - Disable Mac's insertion of its own full screen menu item as we already provide one. r=spohl
MozReview-Commit-ID: EgCWL00ZfUT --HG-- extra : rebase_source : b59ddbe9dd6d2e7335d9a414fa77baf3f78ccaed
This commit is contained in:
Родитель
96ab77b884
Коммит
a02deb60ef
|
@ -297,6 +297,12 @@ ProcessPendingGetURLAppleEvents()
|
|||
NS_OBJC_END_TRY_ABORT_BLOCK_NIL;
|
||||
}
|
||||
|
||||
- (void)applicationWillFinishLaunching:(NSNotification*)notification {
|
||||
// We provide our own full screen menu item, so we don't want the OS providing
|
||||
// one as well.
|
||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
|
||||
}
|
||||
|
||||
// If we don't handle applicationShouldTerminate:, a call to [NSApp terminate:]
|
||||
// (from the browser or from the OS) can result in an unclean shutdown.
|
||||
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender
|
||||
|
|
Загрузка…
Ссылка в новой задаче