aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-07-26 07:20:39 +0200
committerNRK <nrk@disroot.org>2022-07-26 07:20:39 +0200
commitdd0b3cb163c7b64ee630b2e71d6c96ce5918f1e0 (patch)
tree1bbfee1f5a29ae70ad74b822a4a377d3e5152b40
parent78938721a4d38cd67e96600e4d58aa8c302bd8b4 (diff)
downloadnsxiv-dd0b3cb163c7b64ee630b2e71d6c96ce5918f1e0.tar.zst
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>
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 877870e..87dfc14 100644
--- a/main.c
+++ b/main.c
@@ -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))