summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-10-09 00:47:44 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2022-10-09 08:46:51 -0400
commitd73aaf3d9ec0f232c733f9330d38cdec55d9264d (patch)
treeb124e48be4feb16e5d5c551a63714975869eb8a3 /apps/playlist.c
parente57b4f909901ccc04b596ea817a98100b5f7b33b (diff)
downloadrockbox-d73aaf3d9ec0f232c733f9330d38cdec55d9264d.tar.gz
rockbox-d73aaf3d9ec0f232c733f9330d38cdec55d9264d.zip
add splash_progress
the loading track splash flashes and is ugly add a function to display a progressbar along with the splash message spruce up database commit message as well Change-Id: I2749b958c1ee5dad2631a5f999a4b00ddca7f225
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 70a1a0823e..837e9d7f44 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -2201,12 +2201,11 @@ int playlist_resume(void)
2201 2201
2202 for(count=0; count<nread && !exit_loop && !useraborted; count++,p++) 2202 for(count=0; count<nread && !exit_loop && !useraborted; count++,p++)
2203 { 2203 {
2204 /* So a splash while we are loading. */ 2204 /* Show a splash while we are loading. */
2205 splash_progress((total_read + count), control_file_size,
2206 "%s (%s)", str(LANG_WAIT), str(LANG_OFF_ABORT));
2205 if (TIME_AFTER(current_tick, last_tick + HZ/4)) 2207 if (TIME_AFTER(current_tick, last_tick + HZ/4))
2206 { 2208 {
2207 splashf(0, str(LANG_LOADING_PERCENT),
2208 (total_read+count)*100/control_file_size,
2209 str(LANG_OFF_ABORT));
2210 if (action_userabort(TIMEOUT_NOBLOCK)) 2209 if (action_userabort(TIMEOUT_NOBLOCK))
2211 { 2210 {
2212 useraborted = true; 2211 useraborted = true;