From e9c69673adceb64386decca97308439f30ea3c91 Mon Sep 17 00:00:00 2001 From: Uli Kusterer Date: Tue, 8 Dec 2009 19:03:20 +0100 Subject: [PATCH] Set floating window level on the update alert again, but only for bg-only apps. Don't want to annoy users by having an always-visible panel. --- SUUpdateAlert.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SUUpdateAlert.m b/SUUpdateAlert.m index fe8cc171..c20c98dd 100644 --- a/SUUpdateAlert.m +++ b/SUUpdateAlert.m @@ -150,7 +150,8 @@ { NSString* sizeStr = [host objectForInfoDictionaryKey:SUFixedHTMLDisplaySizeKey]; - //[[self window] setLevel:NSFloatingWindowLevel]; // This means the window will float over all other apps, if our app is switched out ?! UK 2007-09-04 + if( [host isBackgroundApplication] ) + [[self window] setLevel:NSFloatingWindowLevel]; // This means the window will float over all other apps, if our app is switched out ?! UK 2007-09-04 [[self window] setFrameAutosaveName: sizeStr ? @"" : @"SUUpdateAlertFrame"]; // We're gonna do some frame magic to match the window's size to the description field and the presence of the release notes view.