fix: statusbar not updating when switching bar (#353)

Closes: https://codeberg.org/nsxiv/nsxiv/issues/352
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/353
Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
This commit is contained in:
NRK 2022-08-08 16:13:28 +02:00
parent 3e17e4684c
commit 8dc126194f

View File

@ -83,15 +83,14 @@ bool cg_toggle_fullscreen(arg_t _)
bool cg_toggle_bar(arg_t _) bool cg_toggle_bar(arg_t _)
{ {
win_toggle_bar(&win); win_toggle_bar(&win);
if (mode == MODE_IMAGE) { if (mode == MODE_IMAGE)
img.checkpan = img.dirty = true;
else
tns.dirty = true;
if (win.bar.h > 0) if (win.bar.h > 0)
open_info(); open_info();
else else
close_info(); close_info();
img.checkpan = img.dirty = true;
} else {
tns.dirty = true;
}
return true; return true;
} }