mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +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
@@ -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