mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
Save/load brief columns to/from panels.ini.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
fb474bc1c1
commit
57e7e8f112
@ -1378,6 +1378,8 @@ panel_load_setup (WPanel * panel, const char *section)
|
||||
}
|
||||
g_free (buffer);
|
||||
|
||||
panel->brief_cols = mc_config_get_int (mc_panels_config, section, "brief_cols", 2);
|
||||
|
||||
/* User formats */
|
||||
g_free (panel->user_format);
|
||||
panel->user_format =
|
||||
@ -1416,6 +1418,8 @@ panel_save_setup (WPanel * panel, const char *section)
|
||||
break;
|
||||
}
|
||||
|
||||
mc_config_set_int (mc_panels_config, section, "brief_cols", panel->brief_cols);
|
||||
|
||||
mc_config_set_string (mc_panels_config, section, "user_format", panel->user_format);
|
||||
|
||||
for (i = 0; i < LIST_TYPES; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user