mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Implement menu item validation in Test Applications window controller
This commit is contained in:
1 parent
38af7cd8cd
commit
eb810c7d8f
1 file changed
+8
@@ -29,4 +29,12 @@
|
||||
[self.updater checkForUpdates:nil];
|
||||
}
|
||||
|
||||
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
|
||||
{
|
||||
if (menuItem.action == @selector(checkForUpdates:)) {
|
||||
return [self.updater validateMenuItem:menuItem];
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user