X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/134c96b0acf0057554ce324ea6d3cedae6a6acbc..ca5ccb3472e33cd85f4ba7aee7e3ebe4e348b04e:/MainController.m diff --git a/MainController.m b/MainController.m index eaaa953..c2502c5 100755 --- a/MainController.m +++ b/MainController.m @@ -189,13 +189,6 @@ static MainController *sharedController; _open = YES; } -- (void)applicationDidBecomeActive:(NSNotification *)note -{ - if (_open && !blinged && ![NSApp mainWindow] && ![[StatusWindow sharedWindow] isVisible]) { - [[MainController sharedController] showPreferences]; - } -} - - (ITMTRemote *)loadRemote { NSString *folderPath = [[NSBundle mainBundle] builtInPlugInsPath]; @@ -1520,7 +1513,7 @@ static MainController *sharedController; [refreshTimer invalidate]; [refreshTimer release]; refreshTimer = nil; - [[NSNotificationCenter defaultCenter] removeObserver:self]; + [[NSNotificationCenter defaultCenter] removeObserver:self name:@"ITMTTrackChanged" object:nil]; [statusItem setEnabled:YES]; [statusItem setToolTip:@"iTunes not running."]; [self clearHotKeys]; @@ -1556,6 +1549,12 @@ static MainController *sharedController; [[NSStatusBar systemStatusBar] removeStatusItem:statusItem]; } +- (void)applicationDidBecomeActive:(NSNotification *)note +{ + if (_open && !blinged && ![NSApp mainWindow] && ([[StatusWindow sharedWindow] exitMode] == ITTransientStatusWindowExitAfterDelay)) { + [[MainController sharedController] showPreferences]; + } +} /*************************************************************************/ #pragma mark -