summaryrefslogtreecommitdiff
path: root/apps/tagtree.c
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-05-28 00:01:57 +0200
committerChristian Soffke <christian.soffke@gmail.com>2024-06-01 11:55:36 -0400
commit3d7d1d4d5b0289c6357e02be70efe2958ae55e0a (patch)
tree77da477194a3f068114d615d52e9a36f6c0c98fa /apps/tagtree.c
parentef1e7d88963aa411f06448f10b3b63886c157c9c (diff)
downloadrockbox-3d7d1d4d5b0289c6357e02be70efe2958ae55e0a.tar.gz
rockbox-3d7d1d4d5b0289c6357e02be70efe2958ae55e0a.zip
plugins: properties: show track info for whole playlist
Track Info can now be displayed for the set of all tracks contained in a playlist. This lets you calculate a playlist's length, for example, even if it is not currently playing. This functionality can be accessed from the existing "Properties" screen for a selected playlist file. A line has been added at the very bottom to show Track Info. Change-Id: I311532b7cfa9e29d46c0cd5623ba4c06c1dd5b5f
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r--apps/tagtree.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 3a875d6da6..be728dcc95 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -1312,30 +1312,6 @@ void tagtree_init(void)
1312 initialize_tagtree(); 1312 initialize_tagtree();
1313} 1313}
1314 1314
1315static bool show_search_progress(bool init, int count)
1316{
1317 static int last_tick = 0;
1318
1319 /* Don't show splashes for 1/2 second after starting search */
1320 if (init)
1321 {
1322 last_tick = current_tick + HZ/2;
1323 return true;
1324 }
1325
1326 /* Update progress every 1/10 of a second */
1327 if (TIME_AFTER(current_tick, last_tick + HZ/10))
1328 {
1329 splashf(0, str(LANG_PLAYLIST_SEARCH_MSG), count, str(LANG_OFF_ABORT));
1330 if (action_userabort(TIMEOUT_NOBLOCK))
1331 return false;
1332 last_tick = current_tick;
1333 yield();
1334 }
1335
1336 return true;
1337}
1338
1339static int format_str(struct tagcache_search *tcs, struct display_format *fmt, 1315static int format_str(struct tagcache_search *tcs, struct display_format *fmt,
1340 char *buf, int buf_size) 1316 char *buf, int buf_size)
1341{ 1317{