X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/28a72418f8254017a166b9307da970e5dc63c7e2..53a760dd8d1249f4e4cbcabb4c07efdfcb29ba2d:/MainController.m diff --git a/MainController.m b/MainController.m index 0c19559..44e766b 100755 --- a/MainController.m +++ b/MainController.m @@ -175,6 +175,11 @@ static MainController *sharedController; [NSApp deactivate]; } +- (void)applicationDidBecomeActive:(NSNotification *)note +{ + [[MainController sharedController] showPreferences]; +} + - (ITMTRemote *)loadRemote { NSString *folderPath = [[NSBundle mainBundle] builtInPlugInsPath]; @@ -361,7 +366,8 @@ static MainController *sharedController; - (void)timerUpdate { - if ([[self currentRemote] playerStateUniqueIdentifier] == nil) { + NSString *identifier = [[self currentRemote] playerStateUniqueIdentifier]; + if (identifier == nil) { if ([statusItem isEnabled]) { [statusItem setToolTip:@"iTunes not responding."]; [[ITHotKeyCenter sharedCenter] setEnabled:NO]; @@ -403,8 +409,7 @@ static MainController *sharedController; if ( [df boolForKey:@"showSongInfoOnChange"] ) { [self performSelector:@selector(showCurrentTrackInfo) withObject:nil afterDelay:0.0]; } - - [self setLatestSongIdentifier:[[self currentRemote] playerStateUniqueIdentifier]]; + [self setLatestSongIdentifier:identifier]; //Create the tooltip for the status item if ( [df boolForKey:@"showToolTip"] ) { NSString *artist = [[self currentRemote] currentSongArtist];