From 45e46500f86e301ff786d34e14239bd3d23136f9 Mon Sep 17 00:00:00 2001 From: rich2014 Date: Thu, 12 Sep 2024 23:45:45 +0800 Subject: [PATCH] Cocoa/ToolBar: fix the setting order for NSMenuToolBarItem --- lcl/interfaces/cocoa/cocoatoolbar.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoatoolbar.inc b/lcl/interfaces/cocoa/cocoatoolbar.inc index 4234fa4953..d34691aad8 100644 --- a/lcl/interfaces/cocoa/cocoatoolbar.inc +++ b/lcl/interfaces/cocoa/cocoatoolbar.inc @@ -724,10 +724,10 @@ var cocoaMenu: NSMenu; begin cocoaItem:= TCocoaToolBarItemMenu.alloc.initWithItemIdentifier( self.identifier ); - cocoaItem.setShowsIndicator( _showsIndicator ); self.setItemAttribs( cocoaItem ); if NOT Assigned(_onAction) then cocoaItem.setAction( nil ); + cocoaItem.setShowsIndicator( _showsIndicator ); if NOT Assigned(_menu) then begin if Assigned(_onGetMenu) then