mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Fixes 250170
Sparkle now remembers to call the delegate's didFindValidUpdate method when using a UI-based update controller. Thanks, Stefan Schimanski!
This commit is contained in:
1 parent
a31dc3a102
commit
675c66ff9d
1 file changed
+4
@@ -19,6 +19,10 @@
|
||||
// If the app is a menubar app or the like, we need to focus it first:
|
||||
if ([[host objectForInfoDictionaryKey:@"LSUIElement"] doubleValue]) { [NSApp activateIgnoringOtherApps:YES]; }
|
||||
|
||||
SUUpdater *updater = [SUUpdater updaterForBundle:[host bundle]];
|
||||
if ([[updater delegate] respondsToSelector:@selector(updater:didFindValidUpdate:)])
|
||||
[[updater delegate] updater:updater didFindValidUpdate:updateItem];
|
||||
|
||||
// Only show the update alert if the app is active; otherwise, we'll wait until it is.
|
||||
if ([NSApp isActive])
|
||||
[[updateAlert window] makeKeyAndOrderFront:self];
|
||||
|
||||
Reference in new issue
Block a user