_open = YES;
}
-- (void)applicationDidBecomeActive:(NSNotification *)note
-{
- if (_open && !blinged && ![NSApp mainWindow] && ![[StatusWindow sharedWindow] isVisible]) {
- [[MainController sharedController] showPreferences];
- }
-}
-
- (ITMTRemote *)loadRemote
{
NSString *folderPath = [[NSBundle mainBundle] builtInPlugInsPath];
if (refreshTimer && identifier == nil) {
if ([statusItem isEnabled]) {
[statusItem setToolTip:@"iTunes not responding."];
- [[ITHotKeyCenter sharedCenter] setEnabled:NO];
}
[statusItem setEnabled:NO];
return;
} else if (![statusItem isEnabled]) {
[statusItem setEnabled:YES];
[statusItem setToolTip:_toolTip];
- [[ITHotKeyCenter sharedCenter] setEnabled:YES];
return;
}
if (refreshTimer) {
if ([statusItem isEnabled]) {
[statusItem setToolTip:NSLocalizedString(@"iTunesNotResponding", @"iTunes is not responding.")];
- [[ITHotKeyCenter sharedCenter] setEnabled:NO];
}
[statusItem setEnabled:NO];
} else {
} else if (![statusItem isEnabled]) {
[statusItem setEnabled:YES];
[statusItem setToolTip:_toolTip];
- [[ITHotKeyCenter sharedCenter] setEnabled:YES];
return;
}
[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 -