X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/28a72418f8254017a166b9307da970e5dc63c7e2..79af64807b6e0499ffce55b4a7e0a07ea2e6cc99:/MainController.m diff --git a/MainController.m b/MainController.m index 0c19559..93fb677 100755 --- a/MainController.m +++ b/MainController.m @@ -361,7 +361,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 +404,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];