From 675c66ff9dc36ef3deda54fbce1623bed076d27f Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Mon, 21 Jul 2008 23:40:52 -0700 Subject: [PATCH] Fixes 250170 Sparkle now remembers to call the delegate's didFindValidUpdate method when using a UI-based update controller. Thanks, Stefan Schimanski! --- SUUIBasedUpdateDriver.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SUUIBasedUpdateDriver.m b/SUUIBasedUpdateDriver.m index 23b69e0c..5fdbc5e5 100644 --- a/SUUIBasedUpdateDriver.m +++ b/SUUIBasedUpdateDriver.m @@ -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];