Fixed the bug where hotkeys would not activate if iTunes was launched
authorKent Sutherland <ksuther@ithinksw.com>
Fri, 10 Oct 2003 12:12:02 +0000 (12:12 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Fri, 10 Oct 2003 12:12:02 +0000 (12:12 +0000)
after MenuTunes.

MainController.m

index e62e62e..dd8c51d 100755 (executable)
@@ -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;
     }
 }