diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index 761bec5f..b550a714 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -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]; diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 08ccc755..7cc87c84 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -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 diff --git a/Sparkle/SUUpdateAlertChoice.h b/Sparkle/SUUpdateAlertChoice.h index 99d1e612..e169a7c3 100644 --- a/Sparkle/SUUpdateAlertChoice.h +++ b/Sparkle/SUUpdateAlertChoice.h @@ -12,8 +12,7 @@ typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) { SUInstallUpdateChoice, SURemindMeLaterChoice, - SUSkipThisVersionChoice, - SUOpenInfoURLChoice + SUSkipThisVersionChoice }; #endif /* SUUpdateAlertChoice_h */ diff --git a/TestApplication/SUUpdateSettingsWindowController.m b/TestApplication/SUUpdateSettingsWindowController.m index 22510720..849e5334 100644 --- a/TestApplication/SUUpdateSettingsWindowController.m +++ b/TestApplication/SUUpdateSettingsWindowController.m @@ -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!");