mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Change updateInProgress to canCheckForUpdates
This more accurately reflects its intended purpose. From the beginning, the user cannot check for updates until the updater is ready; however this doesn't mean that the update is in progress.
This commit is contained in:
1 parent
933504263a
commit
1bb301e82a
10 files changed
+26
-26
No files matched your search
@@ -115,16 +115,16 @@
|
||||
return self.coreComponent.idlesOnUpdateChecks;
|
||||
}
|
||||
|
||||
- (void)showUpdateInProgress:(BOOL)isUpdateInProgress
|
||||
- (void)showCanCheckForUpdates:(BOOL)canCheckForUpdates
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self.coreComponent showUpdateInProgress:isUpdateInProgress];
|
||||
[self.coreComponent showCanCheckForUpdates:canCheckForUpdates];
|
||||
});
|
||||
}
|
||||
|
||||
- (BOOL)isUpdateInProgress
|
||||
- (BOOL)canCheckForUpdates
|
||||
{
|
||||
return self.coreComponent.updateInProgress;
|
||||
return self.coreComponent.canCheckForUpdates;
|
||||
}
|
||||
|
||||
#pragma mark Check Updates Timer
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
|
||||
{
|
||||
if (menuItem.action == @selector(checkForUpdates:)) {
|
||||
return (self.userDriver != nil && !self.userDriver.updateInProgress);
|
||||
return (self.userDriver != nil && self.userDriver.canCheckForUpdates);
|
||||
} else if (menuItem.action == @selector(invalidateConnection:)) {
|
||||
return (self.connection != nil);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user