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. Co-authored-by: A1337Xyz <blindwizard@tutanota.com> Co-authored-by: NRK <nrk@disroot.org> Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/446 Reviewed-by: eylles <eylles@noreply.codeberg.org> Reviewed-by: NRK <nrk@disroot.org> Co-authored-by: a1337xyz <a1337xyz@noreply.codeberg.org> Co-committed-by: a1337xyz <a1337xyz@noreply.codeberg.org>
This commit is contained in:
parent
824b2cb885
commit
e4fceab18f
8
main.c
8
main.c
|
@ -434,12 +434,12 @@ static void update_info(void)
|
|||
r->p = r->buf;
|
||||
if (mode == MODE_THUMB) {
|
||||
if (tns.loadnext < tns.end)
|
||||
bar_put(l, "Loading... %0*d", fw, tns.loadnext + 1);
|
||||
bar_put(r, "Loading... %0*d | ", fw, tns.loadnext + 1);
|
||||
else if (tns.initnext < filecnt)
|
||||
bar_put(l, "Caching... %0*d", fw, tns.initnext + 1);
|
||||
else if (info.ft.err)
|
||||
strncpy(l->buf, files[fileidx].name, l->size);
|
||||
bar_put(r, "Caching... %0*d | ", fw, tns.initnext + 1);
|
||||
bar_put(r, "%s%0*d/%d", mark, fw, fileidx + 1, filecnt);
|
||||
if (info.ft.err)
|
||||
strncpy(l->buf, files[fileidx].name, l->size);
|
||||
} else {
|
||||
bar_put(r, "%s", mark);
|
||||
if (img.ss.on) {
|
||||
|
|
Loading…
Reference in a new issue