(load_layout): fix load of boolean options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
lijah Zarezky 2019-12-21 12:14:59 +03:00 committed by Andrew Borodin
parent fc989f9e53
commit 9ede2fa80b
1 changed files with 2 additions and 2 deletions

View File

@ -687,8 +687,8 @@ load_layout (void)
for (i = 0; layout_bool_options[i].opt_name != NULL; i++)
*layout_bool_options[i].opt_addr =
mc_config_get_int (mc_global.main_config, CONFIG_LAYOUT_SECTION,
layout_bool_options[i].opt_name, *layout_bool_options[i].opt_addr);
mc_config_get_bool (mc_global.main_config, CONFIG_LAYOUT_SECTION,
layout_bool_options[i].opt_name, *layout_bool_options[i].opt_addr);
startup_left_mode = setup__load_panel_state ("New Left Panel");
startup_right_mode = setup__load_panel_state ("New Right Panel");