From 9ede2fa80b7953290ced77dbca8da5c16aa75a7e Mon Sep 17 00:00:00 2001 From: lijah Zarezky Date: Sat, 21 Dec 2019 12:14:59 +0300 Subject: [PATCH] (load_layout): fix load of boolean options. Signed-off-by: Andrew Borodin --- src/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/setup.c b/src/setup.c index fff96f584..f2274624e 100644 --- a/src/setup.c +++ b/src/setup.c @@ -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");