From 39d0872a6ed543d7d3cf633380683ea2bc251d7f Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Thu, 2 Oct 2003 00:34:00 +0000 Subject: [PATCH] Radio playlists now show the elapsed time. --- MenuController.m | 14 ++++++++------ libValidate.a | Bin 8032 -> 8032 bytes 2 files changed, 8 insertions(+), 6 deletions(-) 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 054785f3c4f332185eea91d4221db2da70f093a5..ce2fa1469b4e698491559dfee221432ea2d48a0f 100755 GIT binary patch delta 14 VcmaE0_rPv~JhO$N(MBaZc>pTf1iAnK delta 14 VcmaE0_rPv~JhPFJpTe1iSzM -- 2.20.1