From: Kent Sutherland Date: Fri, 10 Oct 2003 12:12:02 +0000 (+0000) Subject: Fixed the bug where hotkeys would not activate if iTunes was launched X-Git-Tag: v1.2~50 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/b392de720df0cb5b7c0aa95e0b519059a676c233 Fixed the bug where hotkeys would not activate if iTunes was launched after MenuTunes. --- diff --git a/MainController.m b/MainController.m index e62e62e..dd8c51d 100755 --- a/MainController.m +++ b/MainController.m @@ -773,6 +773,7 @@ static MainController *sharedController; { if (!note || [[[note userInfo] objectForKey:@"NSApplicationName"] isEqualToString:[currentRemote playerFullName]]) { ITDebugLog(@"Remote application launched."); + playerRunningState = ITMTRemotePlayerRunning; [currentRemote begin]; [self setLatestSongIdentifier:@""]; [self timerUpdate]; @@ -783,7 +784,6 @@ static MainController *sharedController; repeats:YES] retain]; //[NSThread detachNewThreadSelector:@selector(startTimerInNewThread) toTarget:self withObject:nil]; [self setupHotKeys]; - playerRunningState = ITMTRemotePlayerRunning; } }