Krolyxon
Commit e4fceab

Branches

Refs →

nsxive4fceab

move load/cache messages to right side (#446)

this avoids overwriting the left side bar,
which might contain more important information,
for e.g output of the thumb-info script.
Author
a1337xyz
Date
2023-05-23 03:01 +0000
Committer
NRK · 2023-05-23 03:01 +0000
Parent
824b2cb
Commit
e4fceab18f4b7856a2ef6fbabebe1988c1fbfaea

+4 −4

1 file changed

  1. M main.c +4 −4
M main.c View
@@ -434,12 +434,12 @@ static void update_info(void)
434434 r->p = r->buf;
435435 if (mode == MODE_THUMB) {
436436 if (tns.loadnext < tns.end)
437− bar_put(l, "Loading... %0*d", fw, tns.loadnext + 1);
437+ bar_put(r, "Loading... %0*d | ", fw, tns.loadnext + 1);
438438 else if (tns.initnext < filecnt)
439− bar_put(l, "Caching... %0*d", fw, tns.initnext + 1);
440− else if (info.ft.err)
441− strncpy(l->buf, files[fileidx].name, l->size);
439+ bar_put(r, "Caching... %0*d | ", fw, tns.initnext + 1);
442440 bar_put(r, "%s%0*d/%d", mark, fw, fileidx + 1, filecnt);
441+ if (info.ft.err)
442+ strncpy(l->buf, files[fileidx].name, l->size);
443443 } else {
444444 bar_put(r, "%s", mark);
445445 if (img.ss.on) {