diff --git a/Sparkle/Base.lproj/SUUpdateAlert.xib b/Sparkle/Base.lproj/SUUpdateAlert.xib index 94fbcc59..90e159dd 100644 --- a/Sparkle/Base.lproj/SUUpdateAlert.xib +++ b/Sparkle/Base.lproj/SUUpdateAlert.xib @@ -20,12 +20,12 @@ - + - + diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index b352edd2..cb55acd6 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -34,11 +34,6 @@ SU_EXPORT @interface SPUStandardUserDriver : NSObject */ - (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(nullable id)delegate; -/*! - * Enable or disable hideOnDeactivate for standard update window. - */ -@property (nonatomic) BOOL hideOnDeactivate; - @end NS_ASSUME_NONNULL_END diff --git a/Sparkle/SPUStandardUserDriver.m b/Sparkle/SPUStandardUserDriver.m index c483a6d2..a1d85b28 100644 --- a/Sparkle/SPUStandardUserDriver.m +++ b/Sparkle/SPUStandardUserDriver.m @@ -39,7 +39,6 @@ @synthesize delegate = _delegate; @synthesize checkingController = _checkingController; @synthesize activeUpdateAlert = _activeUpdateAlert; -@synthesize hideOnDeactivate = _hideOnDeactivate; @synthesize statusController = _statusController; #pragma mark Birth @@ -51,7 +50,6 @@ _host = [[SUHost alloc] initWithBundle:hostBundle]; _delegate = delegate; _coreComponent = [[SPUUserDriverCoreComponent alloc] init]; - _hideOnDeactivate = YES; } return self; } @@ -83,15 +81,10 @@ // Make sure the window is loaded in any case [self.activeUpdateAlert window]; - if (!self.hideOnDeactivate) { - [self.activeUpdateAlert.window setHidesOnDeactivate:NO]; - } - // If the app is a menubar app or the like, we need to focus it first and alter the // 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.activeUpdateAlert.window setHidesOnDeactivate:NO]; [NSApp activateIgnoringOtherApps:YES]; }