From 8dc126194fc72f641ca097ab4f8433cd9c268b67 Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 8 Aug 2022 16:13:28 +0200 Subject: [PATCH] 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 --- commands.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/commands.c b/commands.c index 762fc05..8907d51 100644 --- a/commands.c +++ b/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; }