From: Kent Sutherland Date: Sat, 11 Sep 2004 02:39:56 +0000 (+0000) Subject: No idea what I changed, but I'm trying to fix the crash. X-Git-Tag: v1.4~11 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/d0f7f088df5abfd00ae716cf2c1d17ae21d0842b No idea what I changed, but I'm trying to fix the crash. --- diff --git a/MainController.m b/MainController.m index 8784dd1..157b97a 100755 --- a/MainController.m +++ b/MainController.m @@ -358,12 +358,16 @@ static MainController *sharedController; - (void)timerUpdate { if ([[self currentRemote] playerStateUniqueIdentifier] == nil) { + if ([statusItem isEnabled]) { + [statusItem setToolTip:@"iTunes not responding."]; + [self clearHotKeys]; + } [statusItem setEnabled:NO]; - [statusItem setToolTip:@"iTunes not responding."]; return; } else if (![statusItem isEnabled]) { [statusItem setEnabled:YES]; [statusItem setToolTip:_toolTip]; + [self setupHotKeys]; return; }