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:
parent
3e17e4684c
commit
8dc126194f
|
@ -83,15 +83,14 @@ bool cg_toggle_fullscreen(arg_t _)
|
|||
bool cg_toggle_bar(arg_t _)
|
||||
{
|
||||
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)
|
||||
open_info();
|
||||
else
|
||||
close_info();
|
||||
img.checkpan = img.dirty = true;
|
||||
} else {
|
||||
tns.dirty = true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue