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:
Andy Matuschak committed 2008-07-21 23:40:52 -07:00
1 parent a31dc3a102
commit 675c66ff9d
1 file changed
+4
+4
View File
@@ -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];