From 33d426a3d84d5372c29f887e23bd2a45ff05c2ab Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Tue, 10 Mar 2026 18:08:10 +0600 Subject: [PATCH] Test fix for configuration resetting after successfull installation --- source/ubinstall-gtk-saving.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/source/ubinstall-gtk-saving.c b/source/ubinstall-gtk-saving.c index 865eaca..bd462c0 100644 --- a/source/ubinstall-gtk-saving.c +++ b/source/ubinstall-gtk-saving.c @@ -433,18 +433,14 @@ int yon_config_save(main_window *widgets){ void yon_config_restore(main_window *){ yon_load_proceed(main_config.load_mode); - // switch(main_config.load_mode){ - // case YON_CONFIG_GLOBAL: - // on_config_global_load(NULL,widgets); - // break; - // case YON_CONFIG_LOCAL: - // on_config_local_load(NULL,widgets); - // break; - // case YON_CONFIG_CUSTOM: - // on_config_custom_load_last(NULL,widgets); - - // } - // on_config_global_load(NULL,widgets); yon_launch("ubconfig --source system remove [autoinstall]"); - // yon_config_save_simple(YON_CONFIG_LOCAL,"system"); + yon_config_to_default(); + int size; + config_str parameters = yon_config_get_save_parameters(&size); + char *command_params = yon_char_parsed_to_string(parameters,size, " "); + char *command = ubconfig_set_command_full("system","",command_params); + yon_debug_output("%s\n",command); + yon_launch(command); + yon_char_parsed_free(parameters,size); + free(command); } \ No newline at end of file