mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Fix download progress for popup title user driver
This commit is contained in:
1 parent
3c2875602e
commit
f65f4beda8
1 file changed
+1
-1
@@ -276,7 +276,7 @@
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
self.contentLengthDownloaded += length;
|
||||
double progress = (double)self.contentLengthDownloaded / self.expectedContentLength;
|
||||
[self addUpdateButtonWithTitle:[NSString stringWithFormat:@"Downloading (%d%%)", (int)progress] action:nil];
|
||||
[self addUpdateButtonWithTitle:[NSString stringWithFormat:@"Downloading (%0.0f%%)", progress * 100] action:nil];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user