浏览代码

UPD: Use invisible attribute

Alexander Koblov 4 年之前
父节点
当前提交
4395e651c5
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/filesources/vfs/uvfslistoperation.pas
  2. 1 1
      src/platform/upixmapmanager.pas

+ 1 - 1
src/filesources/vfs/uvfslistoperation.pas

@@ -65,7 +65,7 @@ begin
         if VfsModule.FileSourceClass.GetMainIcon(APath) then
         begin
           aFile.LinkProperty.LinkTo:= mbExpandFileName(APath);
-          aFile.Attributes:= FILE_ATTRIBUTE_TEMPORARY or FILE_ATTRIBUTE_VIRTUAL;
+          aFile.Attributes:= FILE_ATTRIBUTE_OFFLINE or FILE_ATTRIBUTE_VIRTUAL;
         end;
         FFiles.Add(aFile);
       end;

+ 1 - 1
src/platform/upixmapmanager.pas

@@ -1878,7 +1878,7 @@ begin
         end;
         Exit;
       end
-      else if (AFile.Attributes = (FILE_ATTRIBUTE_TEMPORARY or FILE_ATTRIBUTE_VIRTUAL)) and Assigned(AFile.LinkProperty) then
+      else if (AFile.Attributes = (FILE_ATTRIBUTE_OFFLINE or FILE_ATTRIBUTE_VIRTUAL)) and Assigned(AFile.LinkProperty) then
       begin
         if not LoadIcon then
           Result := -1