diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2024-07-30 19:12:33 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2024-08-11 13:18:50 -0400 |
commit | 48400b6ec112118b69123d2374a3bb7d8df78f89 (patch) | |
tree | 70fafdc76f0b5c91455afec84e672f3f9ce93295 /firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c | |
parent | 28badc5703615d71dbffbdb6b4be499513727980 (diff) | |
download | rockbox-48400b6ec112118b69123d2374a3bb7d8df78f89.tar.gz rockbox-48400b6ec112118b69123d2374a3bb7d8df78f89.zip |
fileop: fix slow pre-scan & flashing progress bar
Scanning files before a delete or copy operation was
slowed down by splashf() being called too frequently.
- Delay and update splashf every 0.5s (the scan will
often be finished in a split second)
- Only clear screen buffer before scan info is redrawn
- Display name of *top* level item only, to prevent bar
from jumping around due to the string length changing
- Use item size for progress bar, so that the overall
progress isn't interrupted by each file's progress
- Display processed & total file sizes (KiB if total
is < 10MiB, or MiB otherwise)
- Move delete confirmation before scan to provide
instant UI feedback
Change-Id: I882a8db4161a46aca2d398e371ec4ed018fc8501
Diffstat (limited to 'firmware/target/arm/tms320dm320/creative-zvm/ata-creativezvm.c')
0 files changed, 0 insertions, 0 deletions