Jelajahi Sumber

UPD: optimize APP Icon

1. use the Icon in the APP bundle instead of the Icon in the LCL Project
2. cancel setting setRepresentedURL to avoid blank Icon in titlebar
rich2014 1 tahun lalu
induk
melakukan
38c7971ea1
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      src/doublecmd.lpr

+ 3 - 0
src/doublecmd.lpr

@@ -94,6 +94,7 @@ uses
   {$ENDIF}
   {$IFDEF LclCocoa}
   ,uCocoaModernFormConfig
+  ,CocoaConfig
   {$ENDIF}
   ;
 
@@ -144,6 +145,8 @@ begin
 
 {$IF DEFINED(DARWIN)}
   GetMacFormatSettings(DefaultFormatSettings);
+  CocoaConfigGlobal.useIcon:= True;
+  Application.Icon:= nil;
 {$ENDIF}
 
   uDCVersion.InitializeVersionInfo;