diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-10-09 00:47:44 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-10-09 08:46:51 -0400 |
commit | d73aaf3d9ec0f232c733f9330d38cdec55d9264d (patch) | |
tree | b124e48be4feb16e5d5c551a63714975869eb8a3 /apps/root_menu.c | |
parent | e57b4f909901ccc04b596ea817a98100b5f7b33b (diff) | |
download | rockbox-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/root_menu.c')
-rw-r--r-- | apps/root_menu.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c index 80a84d9d49..95524e1ba3 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c | |||
@@ -241,15 +241,19 @@ static int browser(void* param) | |||
241 | { | 241 | { |
242 | if (lang_is_rtl()) | 242 | if (lang_is_rtl()) |
243 | { | 243 | { |
244 | splashf(0, "[%d/%d] %s", stat->commit_step, | 244 | splash_progress(stat->commit_step, |
245 | tagcache_get_max_commit_step(), | 245 | tagcache_get_max_commit_step(), |
246 | str(LANG_TAGCACHE_INIT)); | 246 | "[%d/%d] %s", stat->commit_step, |
247 | tagcache_get_max_commit_step(), | ||
248 | str(LANG_TAGCACHE_INIT)); | ||
247 | } | 249 | } |
248 | else | 250 | else |
249 | { | 251 | { |
250 | splashf(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), | 252 | splash_progress(stat->commit_step, |
251 | stat->commit_step, | 253 | tagcache_get_max_commit_step(), |
252 | tagcache_get_max_commit_step()); | 254 | "%s [%d/%d]", str(LANG_TAGCACHE_INIT), |
255 | stat->commit_step, | ||
256 | tagcache_get_max_commit_step()); | ||
253 | } | 257 | } |
254 | } | 258 | } |
255 | else | 259 | else |