From 0f53f65241097c04613c41f75fc99ef2de70cf00 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 12 Sep 2021 14:57:29 -0700 Subject: [PATCH] Fix not being able to show resumed update in utmost focus (#1948) This fixes a minor bug where canCheckForUpdates returned NO on a user initiated update check that shows an update that was already downloaded / begun installing. Now that it returns YES, the update can be shown in utmost focus by the user again. --- Sparkle/SPUUserInitiatedUpdateDriver.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sparkle/SPUUserInitiatedUpdateDriver.m b/Sparkle/SPUUserInitiatedUpdateDriver.m index ff404219..b62bbe54 100644 --- a/Sparkle/SPUUserInitiatedUpdateDriver.m +++ b/Sparkle/SPUUserInitiatedUpdateDriver.m @@ -72,6 +72,13 @@ [self.uiDriver resumeUpdate:resumableUpdate]; } +- (void)uiDriverDidShowUpdate +{ + // When a new update check has not been initiated and an update has been resumed, + // update the driver to indicate we are showing an update to the user + self.showingUpdate = YES; +} + - (void)basicDriverIsRequestingAbortUpdateWithError:(nullable NSError *)error { [self abortUpdateWithError:error];