mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
(load_layout): fix load of boolean options.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
fc989f9e53
commit
9ede2fa80b
@ -687,8 +687,8 @@ load_layout (void)
|
|||||||
|
|
||||||
for (i = 0; layout_bool_options[i].opt_name != NULL; i++)
|
for (i = 0; layout_bool_options[i].opt_name != NULL; i++)
|
||||||
*layout_bool_options[i].opt_addr =
|
*layout_bool_options[i].opt_addr =
|
||||||
mc_config_get_int (mc_global.main_config, CONFIG_LAYOUT_SECTION,
|
mc_config_get_bool (mc_global.main_config, CONFIG_LAYOUT_SECTION,
|
||||||
layout_bool_options[i].opt_name, *layout_bool_options[i].opt_addr);
|
layout_bool_options[i].opt_name, *layout_bool_options[i].opt_addr);
|
||||||
|
|
||||||
startup_left_mode = setup__load_panel_state ("New Left Panel");
|
startup_left_mode = setup__load_panel_state ("New Left Panel");
|
||||||
startup_right_mode = setup__load_panel_state ("New Right Panel");
|
startup_right_mode = setup__load_panel_state ("New Right Panel");
|
||||||
|
Loading…
Reference in New Issue
Block a user