nsxivdd0b3cb
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.
+3 −1
1 file changed
- M main.c +3 −1
| @@ -720,8 +720,10 @@ static void run(void) | |||
| 720 | 720 | remove_file(tns.loadnext, false); | |
| 721 | 721 | tns.dirty = true; | |
| 722 | 722 | } | |
| 723 | − | if (tns.loadnext >= tns.end) | |
| 723 | + | if (tns.loadnext >= tns.end) { | |
| 724 | + | open_info(); | |
| 724 | 725 | redraw(); | |
| 726 | + | } | |
| 725 | 727 | } else if (init_thumb) { | |
| 726 | 728 | set_timeout(redraw, TO_REDRAW_THUMBS, false); | |
| 727 | 729 | if (!tns_load(&tns, tns.initnext, false, true)) | |