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.

This commit is contained in:
Uli Kusterer committed 2009-12-08 19:03:20 +01:00
1 parent a453afa29a
commit e9c69673ad
1 file changed
+2 -1
+2 -1
View File
@@ -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.