Browse Source

Loading .exe (and similar) file icons asynchronously

Related to Bug 1709

Source commit: cd5406b926a1bb87124cd1dc9b552a5879240063
Martin Prikryl 7 years ago
parent
commit
57bb430f94
2 changed files with 2 additions and 0 deletions
  1. 1 0
      source/forms/ScpCommander.dfm
  2. 1 0
      source/packages/filemng/DirView.pas

+ 1 - 0
source/forms/ScpCommander.dfm

@@ -1453,6 +1453,7 @@ inherited ScpCommanderForm: TScpCommanderForm
       OnMatchMask = DirViewMatchMask
       OnGetOverlay = DirViewGetOverlay
       ConfirmDelete = False
+      UseIconUpdateThread = True
       WatchForChanges = True
       OnFileIconForName = LocalDirViewFileIconForName
       OnContextPopup = LocalDirViewContextPopup

+ 1 - 0
source/packages/filemng/DirView.pas

@@ -1884,6 +1884,7 @@ begin
             begin
               // Files with PIDL are typically .exe files.
               // It may take long to retrieve an icon from exe file.
+              // We typically do not get here, now that we have UseIconUpdateThread enabled.
               if GetFileInfo(
                    PChar(PIDL), FILE_ATTRIBUTE_NORMAL, FileInfo, SizeOf(FileInfo),
                    SHGFI_TYPENAME or SHGFI_USEFILEATTRIBUTES or SHGFI_SYSICONINDEX or SHGFI_PIDL) = 0 then