X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/071b43ba6665e38ecf7d06a6696bf3cb2a59b02d..a250162c5267a1b528a0309f20b4ceccd1363701:/MainController.m?ds=inline diff --git a/MainController.m b/MainController.m index 906dca5..a8c28d0 100755 --- a/MainController.m +++ b/MainController.m @@ -326,9 +326,10 @@ static MainController *sharedController; - (void)setLatestSongIdentifier:(NSString *)newIdentifier { - ITDebugLog(@"Setting latest song identifier to %@", newIdentifier); + ITDebugLog(@"Setting latest song identifier:"); + ITDebugLog(@" - Identifier: %@", newIdentifier); [_latestSongIdentifier autorelease]; - _latestSongIdentifier = [newIdentifier copy]; + _latestSongIdentifier = [newIdentifier retain]; } - (void)timerUpdate @@ -357,6 +358,7 @@ static MainController *sharedController; } timerUpdating = YES; + [_statusItem setEnabled:NO]; NS_DURING latestPlaylistClass = [[self currentRemote] currentPlaylistClass]; @@ -390,6 +392,7 @@ static MainController *sharedController; NS_ENDHANDLER timerUpdating = NO; + [_statusItem setEnabled:YES]; } } @@ -766,6 +769,8 @@ static MainController *sharedController; NSImage *art = nil; int rating = -1; + ITDebugLog(@"Showing track info status window."); + NS_DURING source = [[self currentRemote] currentSource]; title = [[self currentRemote] currentSongTitle]; @@ -773,8 +778,6 @@ static MainController *sharedController; [self networkError:localException]; NS_ENDHANDLER - ITDebugLog(@"Showing track info status window."); - if ( title ) { if ( [df boolForKey:@"showAlbum"] ) { @@ -859,6 +862,7 @@ static MainController *sharedController; } else { title = NSLocalizedString(@"noSongPlaying", @"No song is playing."); } + ITDebugLog(@"Showing current track info status window."); [statusWindowController showSongInfoWindowWithSource:source title:title album:album