From 5a3b98e0a92707ba4c501ae42af74571ceed60cb Mon Sep 17 00:00:00 2001 From: Bastiaan van der Plaat Date: Thu, 8 May 2025 09:15:00 +0200 Subject: [PATCH] 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. --- UI/AppKit/Interface/TabController.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/AppKit/Interface/TabController.mm b/UI/AppKit/Interface/TabController.mm index 4c07ade18be..bf1bb4f7c83 100644 --- a/UI/AppKit/Interface/TabController.mm +++ b/UI/AppKit/Interface/TabController.mm @@ -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];