|
|
|
@ -372,10 +372,10 @@ void on_configuration_save_local(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
char *str=NULL;
|
|
|
|
char *str=NULL;
|
|
|
|
char *delstr=NULL;
|
|
|
|
char *delstr=NULL;
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_local_command);
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_local_command);
|
|
|
|
delstr=yon_configuration_get_remove_command(remove_drivers_local_command);
|
|
|
|
// delstr=yon_configuration_get_remove_command(remove_drivers_local_command);
|
|
|
|
if (delstr){
|
|
|
|
// if (delstr){
|
|
|
|
yon_config_save(delstr);
|
|
|
|
// yon_config_save(delstr);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (str){
|
|
|
|
if (str){
|
|
|
|
yon_config_save(str);
|
|
|
|
yon_config_save(str);
|
|
|
|
|
|
|
|
|
|
|
|
@ -389,23 +389,37 @@ void on_configuration_save_local(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
|
|
|
|
|
|
|
|
void on_configuration_save_local_global(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
void on_configuration_save_local_global(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
on_configuration_save_global(self, widgets);
|
|
|
|
on_configuration_save_global_local(self, widgets);
|
|
|
|
on_configuration_save_local(self, widgets);
|
|
|
|
|
|
|
|
videoconfig.status_render.text_to_render=GLOBAL_LOCAL_SAVE_SUCCESS;
|
|
|
|
videoconfig.status_render.text_to_render=GLOBAL_LOCAL_SAVE_SUCCESS;
|
|
|
|
videoconfig.status_render.type=BACKGROUND_IMAGE_SUCCESS_TYPE;
|
|
|
|
videoconfig.status_render.type=BACKGROUND_IMAGE_SUCCESS_TYPE;
|
|
|
|
yon_ubl_status_box_render(&videoconfig.status_render);
|
|
|
|
yon_ubl_status_box_render(&videoconfig.status_render);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void on_configuration_save_global_local(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
yon_update_config(widgets);
|
|
|
|
|
|
|
|
char *str=NULL;
|
|
|
|
|
|
|
|
char *delstr=NULL;
|
|
|
|
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_global_local_command);
|
|
|
|
|
|
|
|
if (str){
|
|
|
|
|
|
|
|
yon_config_save(str);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
videoconfig.status_render.text_to_render=LOCAL_SAVE_SUCCESS;
|
|
|
|
|
|
|
|
videoconfig.status_render.type=BACKGROUND_IMAGE_SUCCESS_TYPE;
|
|
|
|
|
|
|
|
yon_ubl_status_box_render(&videoconfig.status_render);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_configuration_save_global(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
void on_configuration_save_global(GtkWidget *self, widgets_dict *widgets)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
yon_update_config(widgets);
|
|
|
|
yon_update_config(widgets);
|
|
|
|
char *str=NULL;
|
|
|
|
char *str=NULL;
|
|
|
|
char *delstr=NULL;
|
|
|
|
char *delstr=NULL;
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_global_command);
|
|
|
|
str=yon_configuration_get_save_command(save_drivers_global_command);
|
|
|
|
delstr=yon_configuration_get_remove_command(remove_drivers_global_command);
|
|
|
|
// delstr=yon_configuration_get_remove_command(remove_drivers_global_command);
|
|
|
|
if (delstr){
|
|
|
|
// if (delstr){
|
|
|
|
yon_config_save(delstr);
|
|
|
|
// yon_config_save(delstr);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (str){
|
|
|
|
if (str){
|
|
|
|
yon_config_save(str);
|
|
|
|
yon_config_save(str);
|
|
|
|
|
|
|
|
|
|
|
|
|