diff options
Diffstat (limited to 'UMain.pas')
| -rw-r--r-- | UMain.pas | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1950,6 +1950,9 @@ begin else s := RightPathLabel.Caption; CommandLineLabel.Caption := Format('%s@%s:%s>', [GetUserName, GetHostName, s]); LeftPanelEngine.GetFileSystemInfo(LeftPanelEngine.Path, FSSize, FSFree, FSName); + // *TODO: hide numbers if filesystem info cannot be determined + if FSSize < 0 then FSSize := 0; + if FSFree < 0 then FSFree := 0; if FSName <> '' then LeftDiskInfoLabel.Caption := Format(LANGDiskStatVolNameFmt, [FSName, FormatSize(FSFree, 1024), |
