UI/AppKit: Disable toolbar mode customization

Currently you can right click on the toolbar for a system
contextmenu. When you change the display mode
the toolbar goes into a weird smaller state.
This commit is contained in:
Bastiaan van der Plaat 2025-05-08 09:15:00 +02:00 committed by Sam Atkins
commit 5a3b98e0a9
Notes: github-actions[bot] 2025-05-08 10:24:25 +00:00

View file

@ -103,6 +103,7 @@ static NSString* const TOOLBAR_TAB_OVERVIEW_IDENTIFIER = @"ToolbarTabOverviewIde
self.toolbar = [[NSToolbar alloc] initWithIdentifier:TOOLBAR_IDENTIFIER];
[self.toolbar setDelegate:self];
[self.toolbar setDisplayMode:NSToolbarDisplayModeIconOnly];
[self.toolbar setAllowsDisplayModeCustomization:NO];
[self.toolbar setAllowsUserCustomization:NO];
[self.toolbar setSizeMode:NSToolbarSizeModeRegular];