X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/4416c262f94695ab705ab81826b10540923407e4..0b727e3ec3a58f5751bb8f41079162c1c4c09e2d:/MainController.m diff --git a/MainController.m b/MainController.m index da07757..4eb7891 100755 --- a/MainController.m +++ b/MainController.m @@ -11,6 +11,10 @@ #import "StatusWindowController.h" #import "StatusItemHack.h" +@interface NSMenu (MenuImpl) +- (id)_menuImpl; +@end + @interface NSCarbonMenuImpl:NSObject { NSMenu *_menu; @@ -435,7 +439,7 @@ static MainController *sharedController; { ITDebugLog(@"Menu clicked."); - if ([[self currentRemote] playerStateUniqueIdentifier] == nil) { + if ( ([[self currentRemote] playerStateUniqueIdentifier] == nil) && playerRunningState == ITMTRemotePlayerRunning ) { if ([statusItem isEnabled]) { [statusItem setToolTip:@"iTunes not responding."]; [self clearHotKeys]; @@ -1393,6 +1397,8 @@ static MainController *sharedController; [refreshTimer invalidate]; [refreshTimer release]; refreshTimer = nil; + [statusItem setEnabled:YES]; + [statusItem setToolTip:@"iTunes not running."]; [self clearHotKeys]; if ([df objectForKey:@"ShowPlayer"] != nil) {