From dd0b3cb163c7b64ee630b2e71d6c96ce5918f1e0 Mon Sep 17 00:00:00 2001 From: NRK Date: Tue, 26 Jul 2022 07:20:39 +0200 Subject: [PATCH] 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 --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))