mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 19:01:43 +02:00
Cocoa/ToolBar: fix the setting order for NSMenuToolBarItem
This commit is contained in:
parent
be1b06eadc
commit
45e46500f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user