Fixed playcount showing up in places it shouldn't.
authorKent Sutherland <ksuther@ithinksw.com>
Sun, 18 Jul 2004 17:50:25 +0000 (17:50 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Sun, 18 Jul 2004 17:50:25 +0000 (17:50 +0000)
MainController.m
MenuController.m

index eb1aa3f..23a6d1e 100755 (executable)
@@ -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
index c448278..54f9809 100755 (executable)
                 
                 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 )) {