Ver Fonte

UPD: Use invisible attribute

Alexander Koblov há 4 anos atrás
pai
commit
4395e651c5

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

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

+ 1 - 1
src/platform/upixmapmanager.pas

@@ -1878,7 +1878,7 @@ begin
         end;
         end;
         Exit;
         Exit;
       end
       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
       begin
         if not LoadIcon then
         if not LoadIcon then
           Result := -1
           Result := -1