mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
#3878 don't show the units of a partial file size when it's the same as the full file size's units
This commit is contained in:
@@ -76,8 +76,7 @@
|
||||
{
|
||||
[fProgressBar setIndeterminate: NO];
|
||||
|
||||
NSString * substring = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@", "Blocklist -> message"),
|
||||
[NSString stringForFileSize: currentSize], [NSString stringForFileSize: expectedSize]];
|
||||
NSString * substring = [NSString stringForFilePartialSize: currentSize fullSize: expectedSize];
|
||||
string = [string stringByAppendingFormat: @" (%@)", substring];
|
||||
[fProgressBar setDoubleValue: (double)currentSize / expectedSize];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user