Remove opening info URL from being an update alert choice

This option is really "do something in user driver & remind me later"
This commit is contained in:
Zorg committed 2016-02-19 21:00:54 -05:00
1 parent 6acbf0010a
commit e6ac015dde
4 files changed
+4 -16

No files matched your search

-8
View File
@@ -83,14 +83,6 @@
break;
}
case SUOpenInfoURLChoice:
{
[self.updater.userUpdaterDriver openInfoURLForAppcastItem:self.updateItem];
[self abortUpdate];
break;
}
case SUSkipThisVersionChoice:
[self.host setObject:[self.updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey];
[self abortUpdate];
+3 -1
View File
@@ -104,7 +104,9 @@
- (IBAction)openInfoURL:(id)__unused sender
{
[self endWithSelection:SUOpenInfoURLChoice];
[[NSWorkspace sharedWorkspace] openURL:self.updateItem.infoURL];
[self endWithSelection:SURemindMeLaterChoice];
}
- (IBAction)skipThisVersion:(id)__unused sender
+1 -2
View File
@@ -12,8 +12,7 @@
typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) {
SUInstallUpdateChoice,
SURemindMeLaterChoice,
SUSkipThisVersionChoice,
SUOpenInfoURLChoice
SUSkipThisVersionChoice
};
#endif /* SUUpdateAlertChoice_h */
@@ -22,11 +22,6 @@
reply([SUUpdatePermissionPromptResult updatePermissionPromptResultWithChoice:SUAutomaticallyCheck shouldSendProfile:YES]);
}
- (void)openInfoURLForAppcastItem:(SUAppcastItem *)appcastItem
{
NSLog(@"Hah, you want to open info URL? That's funny!");
}
- (void)showUserInitiatedUpdateCheckWithCancelCallback:(void (^)(void))cancelUpdateCheck
{
NSLog(@"Evil user initiated an update check!");