Test fix for configuration resetting after successfull installation

pull/284/head
parent f0d37f8237
commit 33d426a3d8

@ -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);
}
Loading…
Cancel
Save