From d73aaf3d9ec0f232c733f9330d38cdec55d9264d Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 9 Oct 2022 00:47:44 -0400 Subject: 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 --- apps/onplay.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/onplay.c') diff --git a/apps/onplay.c b/apps/onplay.c index e4e2a7b3b8..bb93d204e0 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -382,8 +382,9 @@ static bool playing_time(void) although playback continues forward. */ for (i = 0; i < pti.nb_tracks; i++) { /* Show a splash while we are loading. */ - splashf(0, str(LANG_LOADING_PERCENT), - i*100/pti.nb_tracks, str(LANG_OFF_ABORT)); + splash_progress(i, pti.nb_tracks, + "%s (%s)", str(LANG_WAIT), str(LANG_OFF_ABORT)); + /* Voice equivalent */ if (TIME_AFTER(current_tick, talked_tick+5*HZ)) { talked_tick = current_tick; -- cgit v1.2.3