mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Undo removing progress change
This commit is contained in:
1 parent
9f5dd63697
commit
acd22dda12
1 file changed
+5
-8
Vendored
+5
-8
@@ -136,7 +136,7 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.5;
|
||||
self.statusController = [[SUStatusController alloc] initWithHost:host];
|
||||
[self.statusController setButtonTitle:SULocalizedString(@"Cancel Update", @"") target:nil action:Nil isDefault:NO];
|
||||
[self.statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"")
|
||||
maxProgressValue:0 statusText: @""];
|
||||
maxProgressValue:100 statusText: @""];
|
||||
[self.statusController showWindow:self];
|
||||
}
|
||||
|
||||
@@ -151,13 +151,10 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.5;
|
||||
return;
|
||||
}
|
||||
|
||||
void(^progressBlock)(double) = ^(double __unused progress){
|
||||
// Showing determinate progress doesn't work anymore and may be fragile to support, so disabling it and using intermediate progress bar with maxProgressValue as 0
|
||||
// instead of 100 above in beginActionWithTitle:maxProgressValue:statusText: call
|
||||
|
||||
//dispatch_async(dispatch_get_main_queue(), ^(){
|
||||
// self.statusController.progressValue = progress * 100.0;
|
||||
//});
|
||||
void(^progressBlock)(double) = ^(double progress){
|
||||
dispatch_async(dispatch_get_main_queue(), ^(){
|
||||
self.statusController.progressValue = progress * 100.0;
|
||||
});
|
||||
};
|
||||
|
||||
NSError *finalInstallationError = nil;
|
||||
|
||||
Reference in new issue
Block a user