From: Kent Sutherland Date: Thu, 2 Oct 2003 00:34:00 +0000 (+0000) Subject: Radio playlists now show the elapsed time. X-Git-Tag: v1.0~8 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/39d0872a6ed543d7d3cf633380683ea2bc251d7f Radio playlists now show the elapsed time. --- diff --git a/MenuController.m b/MenuController.m index 774d062..8889d59 100755 --- a/MenuController.m +++ b/MenuController.m @@ -247,12 +247,14 @@ [menu addItemWithTitle:[NSString stringWithFormat:@"%@ %i", NSLocalizedString(@"track", @"Track"), track] action:nil keyEquivalent:@""]]; } } - - if ([defaults boolForKey:@"showTime"] && ( ([currentRemote currentSongElapsed] != nil) || ([currentRemote currentSongLength] != nil) )) { - ITDebugLog(@"Add Track Elapsed (\"%@/%@\") menu item.", [currentRemote currentSongElapsed], [currentRemote currentSongLength]); - [menu indentItem:[menu addItemWithTitle:[NSString stringWithFormat:@"%@/%@", [currentRemote currentSongElapsed], [currentRemote currentSongLength]] action:nil keyEquivalent:@""]]; - } - + } + + if ([defaults boolForKey:@"showTime"] && ( ([currentRemote currentSongElapsed] != nil) || ([currentRemote currentSongLength] != nil) )) { + ITDebugLog(@"Add Track Elapsed (\"%@/%@\") menu item.", [currentRemote currentSongElapsed], [currentRemote currentSongLength]); + [menu indentItem:[menu addItemWithTitle:[NSString stringWithFormat:@"%@/%@", [currentRemote currentSongElapsed], [currentRemote currentSongLength]] action:nil keyEquivalent:@""]]; + } + + if (!_playingRadio) { if ([defaults boolForKey:@"showTrackRating"] && ( [currentRemote currentSongRating] != -1.0 )) { NSString *string = nil; switch ((int)([currentRemote currentSongRating] * 5)) { diff --git a/libValidate.a b/libValidate.a index 054785f..ce2fa14 100755 Binary files a/libValidate.a and b/libValidate.a differ