Skip to content

Commit

Permalink
Ladybird/AppKit: The "Window" menu should be called "Window"
Browse files Browse the repository at this point in the history
...not "Windows".
  • Loading branch information
nico committed Jan 15, 2024
1 parent f2c726e commit 646b530
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Ladybird/AppKit/Application/ApplicationDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ - (NSMenuItem*)createSettingsMenu;
- (NSMenuItem*)createHistoryMenu;
- (NSMenuItem*)createInspectMenu;
- (NSMenuItem*)createDebugMenu;
- (NSMenuItem*)createWindowsMenu;
- (NSMenuItem*)createWindowMenu;
- (NSMenuItem*)createHelpMenu;

@end
Expand All @@ -67,7 +67,7 @@ - (instancetype)init:(Vector<URL>)initial_urls
[[NSApp mainMenu] addItem:[self createHistoryMenu]];
[[NSApp mainMenu] addItem:[self createInspectMenu]];
[[NSApp mainMenu] addItem:[self createDebugMenu]];
[[NSApp mainMenu] addItem:[self createWindowsMenu]];
[[NSApp mainMenu] addItem:[self createWindowMenu]];
[[NSApp mainMenu] addItem:[self createHelpMenu]];

self.managed_tabs = [[NSMutableArray alloc] init];
Expand Down Expand Up @@ -518,10 +518,10 @@ - (NSMenuItem*)createDebugMenu
return menu;
}

- (NSMenuItem*)createWindowsMenu
- (NSMenuItem*)createWindowMenu
{
auto* menu = [[NSMenuItem alloc] init];
auto* submenu = [[NSMenu alloc] initWithTitle:@"Windows"];
auto* submenu = [[NSMenu alloc] initWithTitle:@"Window"];

[NSApp setWindowsMenu:submenu];

Expand Down

0 comments on commit 646b530

Please sign in to comment.