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:
Zorg committed 2016-04-09 11:39:02 -04:00
1 parent 933504263a
commit 1bb301e82a
10 files changed
+26 -26

No files matched your search

+4 -4
View File
@@ -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);
}