diff --git a/src/filemanager/midnight.c b/src/filemanager/midnight.c index c1a59deef..eb821b2e1 100644 --- a/src/filemanager/midnight.c +++ b/src/filemanager/midnight.c @@ -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) {