X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/65f31be1ce0256d040f27a02e5ea6eaf2381289f..e8516aa003a65e030ec6f7c4007ed04efa351477:/MainController.m?ds=inline diff --git a/MainController.m b/MainController.m index d7dfa6f..692c409 100755 --- a/MainController.m +++ b/MainController.m @@ -71,7 +71,14 @@ static MainController *sharedController; if ([currentRemote playerRunningState] == ITMTRemotePlayerRunning) { [self applicationLaunched:nil]; } else { - [self applicationTerminated:nil]; + if ([df boolForKey:@"LaunchPlayerWithMT"]) + { + [self showPlayer]; + } + else + { + [self applicationTerminated:nil]; + } } [statusItem setImage:[NSImage imageNamed:@"menu"]]; @@ -159,14 +166,8 @@ static MainController *sharedController; - (void)timerUpdate { - //This huge if statement is being nasty - /*if ( ( [self songChanged] ) || - ( ([self radioIsPlaying]) && (latestPlaylistClass != ITMTRemotePlayerRadioPlaylist) ) || - ( (! [self radioIsPlaying]) && (latestPlaylistClass == ITMTRemotePlayerRadioPlaylist) ) )*/ - if ([self songChanged]) { [self setLatestSongIdentifier:[currentRemote currentSongUniqueIdentifier]]; - latestPlaylistClass = [currentRemote currentPlaylistClass]; [menuController rebuildSubmenus]; if ( [df boolForKey:@"showSongInfoOnChange"] ) {