Close image-info explicitly

This commit is contained in:
Bert Münnich
2018-02-18 13:16:00 +01:00
parent 4124857137
commit 762420cdf1
2 changed files with 22 additions and 19 deletions

View File

@ -27,6 +27,7 @@
void remove_file(int, bool);
void load_image(int);
void close_info(void);
void open_info(void);
int ptr_third_x(void);
void redraw(void);
@ -98,9 +99,11 @@ bool cg_toggle_bar(arg_t _)
{
win_toggle_bar(&win);
if (mode == MODE_IMAGE) {
img.checkpan = img.dirty = true;
if (win.bar.h > 0)
open_info();
else
close_info();
img.checkpan = img.dirty = true;
} else {
tns.dirty = true;
}