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
13
commands.c
13
commands.c
@ -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 (win.bar.h > 0)
|
||||
open_info();
|
||||
else
|
||||
close_info();
|
||||
if (mode == MODE_IMAGE)
|
||||
img.checkpan = img.dirty = true;
|
||||
} else {
|
||||
else
|
||||
tns.dirty = true;
|
||||
}
|
||||
if (win.bar.h > 0)
|
||||
open_info();
|
||||
else
|
||||
close_info();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user