mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Make sure updater is not nil for menu validation
This commit is contained in:
1 parent
8325c9a4d9
commit
21b49d41a2
1 file changed
+1
-1
Vendored
+1
-1
@@ -60,7 +60,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults
|
||||
- (BOOL)validateMenuItem:(NSMenuItem *)item
|
||||
{
|
||||
if ([item action] == @selector(checkForUpdates:)) {
|
||||
return !self.updater.updateInProgress;
|
||||
return (self.updater != nil && !self.updater.updateInProgress);
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user