Ticket #3156: fix of panels redraw after toggling hidden files.

(toggle_show_hidden): redraw both panels forced after toggling
hidden files. The bug is appeared when toggling is performed
by mouse clicking on icon in the panel title: current panel
is updated, other one isn't.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-01-15 14:08:16 +04:00
parent 38629e21de
commit 651bb2e86e

View File

@ -1069,15 +1069,6 @@ quit_cmd (void)
/* --------------------------------------------------------------------------------------------- */
static void
toggle_show_hidden (void)
{
panels_options.show_dot_files = !panels_options.show_dot_files;
update_panels (UP_RELOAD, UP_KEEPSEL);
}
/* --------------------------------------------------------------------------------------------- */
/**
* Repaint the contents of the panels without frames. To schedule panel
* for repainting, set panel->dirty to 1. There are many reasons why
@ -1097,6 +1088,17 @@ update_dirty_panels (void)
/* --------------------------------------------------------------------------------------------- */
static void
toggle_show_hidden (void)
{
panels_options.show_dot_files = !panels_options.show_dot_files;
update_panels (UP_RELOAD, UP_KEEPSEL);
/* redraw panels forced */
update_dirty_panels ();
}
/* --------------------------------------------------------------------------------------------- */
static cb_ret_t
midnight_execute_cmd (Widget * sender, unsigned long command)
{