diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-11-15 16:22:51 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-11-15 16:22:51 +0100 |
| commit | b4a479a691069a0293754fa94922b77ca406fea7 (patch) | |
| tree | 1c1629c445240340be23093b1607bb659040038d /UMain.pas | |
| parent | 7f89810e3c6ff92b0771ca11a817b82e081ccfa5 (diff) | |
| download | tuxcmd-b4a479a691069a0293754fa94922b77ca406fea7.tar.xz | |
VFS: Compressed size display support
Diffstat (limited to 'UMain.pas')
| -rw-r--r-- | UMain.pas | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6259,7 +6259,12 @@ begin if (ConfSizeFormat < 5) or (Stat^.Size < 1024) then s := Format(' %s', [LANGHandleRunFromArchive_Bytes]); FRunFromVFS.SizeLabel2.Caption := Format('%s%s<span weight="ultrabold"> </span>', [FormatSize(Stat^.Size, 0), s]); if (ConfSizeFormat < 5) or (Stat^.Size < 1024) then s := Format(' %s', [LANGHandleRunFromArchive_Bytes]); - FRunFromVFS.PackedSizeLabel2.Caption := Format('%s%s<span weight="ultrabold"> </span>', [FormatSize(Stat^.Size, 0), s]); + if Stat^.PackedSize >= 0 then begin + FRunFromVFS.PackedSizeLabel2.Caption := Format('%s%s<span weight="ultrabold"> </span>', [FormatSize(Stat^.PackedSize, 0), s]); + end else begin + FRunFromVFS.PackedSizeLabel2.Visible := False; + FRunFromVFS.PackedSizeLabel.Visible := False; + end; FRunFromVFS.DateLabel2.Caption := Format('%s<span weight="ultrabold"> </span>', [FormatDate(Stat^.ModifyTime, True, True)]); if (Command = '') and (not Stat^.IsExecutable) then begin FRunFromVFS.OpensWithLabel2.Caption := Format('%s<span weight="ultrabold"> </span>', [LANGHandleRunFromArchive_NotAssociated]); |
