mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
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:
1 parent
6acbf0010a
commit
e6ac015dde
4 files changed
+4
-16
No files matched your search
Vendored
-8
@@ -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];
|
||||
|
||||
Vendored
+3
-1
@@ -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
|
||||
|
||||
Vendored
+1
-2
@@ -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!");
|
||||
|
||||
Reference in new issue
Block a user