IDE/Cocoa: modify the code related to macOS menu (base on ab440b6)

This commit is contained in:
rich2014 2024-08-22 21:05:36 +08:00
parent ab440b6eb1
commit ee4ab33846

View File

@ -74,7 +74,7 @@ uses
GraphType, LazStringUtils, LazTracer, GraphType, LazStringUtils, LazTracer,
LCLExceptionStacktrace, LCLExceptionStacktrace,
{$IFDEF LCLWin} Win32Proc, {$ENDIF} {$IFDEF LCLWin} Win32Proc, {$ENDIF}
{$IFDEF LCLCocoa} CocoaMenus, {$ENDIF} {$IFDEF LCLCocoa} CocoaConfig, {$ENDIF}
// SynEdit // SynEdit
SynEdit, AllSynEdit, SynEditKeyCmds, SynEditMarks, SynEditHighlighter, SynHighlighterPas, SynEdit, AllSynEdit, SynEditKeyCmds, SynEditMarks, SynEditHighlighter, SynHighlighterPas,
// BuildIntf // BuildIntf
@ -2641,8 +2641,8 @@ begin
SetupWindowsMenu; SetupWindowsMenu;
SetupHelpMenu; SetupHelpMenu;
{$ifdef LCLCocoa} {$ifdef LCLCocoa}
macOS_AppMenuIntf.aboutItem:= MainIDEBar.itmHelpAboutLazarus.MenuItem; CocoaConfigMenu.appMenu.aboutItem:= MainIDEBar.itmHelpAboutLazarus.MenuItem;
macOS_AppMenuIntf.preferencesItem:= MainIDEBar.itmEnvGeneralOptions.MenuItem; CocoaConfigMenu.appMenu.preferencesItem:= MainIDEBar.itmEnvGeneralOptions.MenuItem;
{$endif} {$endif}
end; end;