Undo removing progress change

This commit is contained in:
Zorg committed 2021-02-19 20:38:47 -08:00
1 parent 9f5dd63697
commit acd22dda12
1 file changed
+5 -8
+5 -8
View File
@@ -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;