Ticket #1663: Panels state saves and restores despite disabled 'Auto save setup'

Added option 'auto_save_setup_panels' into [Midnight-Commander] section of ini-file.
If no specified, value of this option is equal to value of 'auto_save_setup' option.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-12-24 13:19:36 +02:00
parent 52ba225bc5
commit 4f88a84526

View File

@ -332,6 +332,9 @@ save_panel_types (void)
{
int type;
if (! mc_config_get_int(mc_main_config,CONFIG_APP_SECTION,"auto_save_setup_panels",auto_save_setup))
return;
type = get_display_type (0);
panel_save_type ("New Left Panel", type);
if (type == view_listing)