UPD: File size format

This commit is contained in:
Alexander Koblov 2023-05-15 23:07:06 +03:00
commit 723e7aa8cd

View file

@ -320,7 +320,11 @@ end;
function TfrmFileProperties.FormatSize(ASize: Int64): String;
begin
Result:= Format('%s (%s)', [cnvFormatFileSize(ASize, fsfFloat, gFileSizeDigits), IntToStrTS(ASize)]);
if gFileSizeFormat in [fsfByte, fsfPersonalizedByte] then
Result:= cnvFormatFileSize(ASize)
else begin
Result:= Format('%s (%s)', [cnvFormatFileSize(ASize), IntToStrTS(ASize)]);
end;
end;
procedure TfrmFileProperties.ShowMany;