mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
ef1e7d8896
commit
3d7d1d4d5b
8 changed files with 187 additions and 115 deletions
|
|
@ -1312,30 +1312,6 @@ void tagtree_init(void)
|
|||
initialize_tagtree();
|
||||
}
|
||||
|
||||
static bool show_search_progress(bool init, int count)
|
||||
{
|
||||
static int last_tick = 0;
|
||||
|
||||
/* Don't show splashes for 1/2 second after starting search */
|
||||
if (init)
|
||||
{
|
||||
last_tick = current_tick + HZ/2;
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Update progress every 1/10 of a second */
|
||||
if (TIME_AFTER(current_tick, last_tick + HZ/10))
|
||||
{
|
||||
splashf(0, str(LANG_PLAYLIST_SEARCH_MSG), count, str(LANG_OFF_ABORT));
|
||||
if (action_userabort(TIMEOUT_NOBLOCK))
|
||||
return false;
|
||||
last_tick = current_tick;
|
||||
yield();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static int format_str(struct tagcache_search *tcs, struct display_format *fmt,
|
||||
char *buf, int buf_size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue