fix: duplicate fullscreen macOS menu item (#49074)

This commit is contained in:
Shelley Vohr
2026-01-30 19:23:43 +01:00
committed by GitHub
parent e033c10075
commit 6825a522e9
2 changed files with 8 additions and 5 deletions

View File

@@ -56,11 +56,6 @@ static NSDictionary* UNNotificationResponseToNSDictionary(
}
- (void)applicationWillFinishLaunching:(NSNotification*)notify {
// Don't add the "Enter Full Screen" menu item automatically.
[[NSUserDefaults standardUserDefaults]
setBool:NO
forKey:@"NSFullScreenMenuItemEverywhere"];
[[[NSWorkspace sharedWorkspace] notificationCenter]
addObserver:self
selector:@selector(willPowerOff:)