_open = YES;
}
-- (void)applicationDidBecomeActive:(NSNotification *)note
-{
- if (_open && !blinged && ![NSApp mainWindow] && ![[StatusWindow sharedWindow] isVisible]) {
- [[MainController sharedController] showPreferences];
- }
-}
-
- (ITMTRemote *)loadRemote
{
NSString *folderPath = [[NSBundle mainBundle] builtInPlugInsPath];
[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];
[[NSStatusBar systemStatusBar] removeStatusItem:statusItem];
}
+- (void)applicationDidBecomeActive:(NSNotification *)note
+{
+ if (_open && !blinged && ![NSApp mainWindow] && ([[StatusWindow sharedWindow] exitMode] == ITTransientStatusWindowExitAfterDelay)) {
+ [[MainController sharedController] showPreferences];
+ }
+}
/*************************************************************************/
#pragma mark -