Permalink
Browse files

Fixes 250170

Sparkle now remembers to call the delegate's didFindValidUpdate method when using a UI-based update controller. Thanks, Stefan Schimanski!
  • Loading branch information...
1 parent a31dc3a commit 675c66ff9dc36ef3deda54fbce1623bed076d27f @andymatuschak andymatuschak committed Jul 22, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 SUUIBasedUpdateDriver.m
View
4 SUUIBasedUpdateDriver.m
@@ -19,6 +19,10 @@ - (void)didFindValidUpdate
// 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];

0 comments on commit 675c66f

Please sign in to comment.