From 08932966b260cb5430a5fa47f21889c5355560ea Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 6 Nov 2021 15:43:03 -0700 Subject: [PATCH] Disable hide on deactivate for update window (1.x) (#2008) This is a backport of #1804 to 1.x --- Sparkle/Base.lproj/SUUpdateAlert.xib | 6 +++--- Sparkle/SUAutomaticUpdateDriver.m | 1 - Sparkle/SUStatus.xib | 6 +++--- Sparkle/SUUIBasedUpdateDriver.m | 1 - UITests/SUTestApplicationTest.swift | 2 +- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Sparkle/Base.lproj/SUUpdateAlert.xib b/Sparkle/Base.lproj/SUUpdateAlert.xib index 94fbcc59..2c5a5b79 100644 --- a/Sparkle/Base.lproj/SUUpdateAlert.xib +++ b/Sparkle/Base.lproj/SUUpdateAlert.xib @@ -1,8 +1,8 @@ - + - + @@ -20,7 +20,7 @@ - + diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index d57d3bc1..e344d7dc 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -61,7 +61,6 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 // update prompt to behave like a normal window. Otherwise if the window were hidden // there may be no way for the application to be activated to make it visible again. if ([SUApplicationInfo isBackgroundApplication:[NSApplication sharedApplication]]) { - [[self.alert window] setHidesOnDeactivate:NO]; [NSApp activateIgnoringOtherApps:YES]; } diff --git a/Sparkle/SUStatus.xib b/Sparkle/SUStatus.xib index 2985c4c9..138c4b79 100644 --- a/Sparkle/SUStatus.xib +++ b/Sparkle/SUStatus.xib @@ -1,8 +1,8 @@ - + - + @@ -55,7 +55,7 @@