From 57cbba98e6ff809563b1dff6fd55603761ec995b Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Sun, 18 Jul 2004 17:50:25 +0000 Subject: [PATCH] Fixed playcount showing up in places it shouldn't. --- MainController.m | 2 +- MenuController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MainController.m b/MainController.m index eb1aa3f..23a6d1e 100755 --- a/MainController.m +++ b/MainController.m @@ -930,7 +930,7 @@ static MainController *sharedController; } } - if ( [df boolForKey:@"showPlayCount"] && ![self radioIsPlaying] ) { + if ( [df boolForKey:@"showPlayCount"] && ![self radioIsPlaying] && [[self currentRemote] currentSource] == ITMTRemoteLibrarySource ) { NS_DURING playCount = [[self currentRemote] currentSongPlayCount]; NS_HANDLER diff --git a/MenuController.m b/MenuController.m index c448278..54f9809 100755 --- a/MenuController.m +++ b/MenuController.m @@ -312,7 +312,7 @@ if (!_playingRadio) { NS_DURING - if ([defaults boolForKey:@"showPlayCount"]) { + if ([defaults boolForKey:@"showPlayCount"] && [mtr currentSource] == ITMTRemoteLibrarySource) { [menu indentItem:[menu addItemWithTitle:[NSString stringWithFormat:@"Play Count: %i", [mtr currentSongPlayCount]] action:nil keyEquivalent:@""]]; } if ([defaults boolForKey:@"showTrackRating"] && ( [mtr currentSongRating] != -1.0 )) { -- 2.20.1