fix: duplicate fullscreen macOS menu item (#49595)

This commit is contained in:
trop[bot]
2026-02-02 14:20:51 +01:00
committed by GitHub
parent f5dbe3212b
commit f6df2854ff
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:)