fix: stale statusbar when started in thumbnail mode (#341)

this was one of the cases which got missed in 591be8c, if someone starts
with `-t` the statusbar will remain at "Loading ...". Once we're done
loading all the thumbnail, make sure to open_info() so that `thumb-info`
gets called.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/341
Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
pull/348/head
NRK 2 years ago
parent 78938721a4
commit dd0b3cb163

@ -720,8 +720,10 @@ static void run(void)
remove_file(tns.loadnext, false);
tns.dirty = true;
}
if (tns.loadnext >= tns.end)
if (tns.loadnext >= tns.end) {
open_info();
redraw();
}
} else if (init_thumb) {
set_timeout(redraw, TO_REDRAW_THUMBS, false);
if (!tns_load(&tns, tns.initnext, false, true))

Loading…
Cancel
Save