瀏覽代碼

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 年之前
父節點
當前提交
38c7971ea1
共有 1 個文件被更改,包括 3 次插入0 次删除
  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;