Fixed saving of ignored parameters #35

Merged
asmeron merged 1 commits from YanTheKaller/libublsettingsui-gtk3:master into master 12 months ago

@ -371,6 +371,7 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
struct loaded_config *current = NULL; struct loaded_config *current = NULL;
if (current_loaded){ if (current_loaded){
for_dictionaries(current,current_loaded){ for_dictionaries(current,current_loaded){
if (!yon_config_check_ignore(current->key)){
dictionary *dict = yon_dictionary_get((dictionary**)&config_compare,current->key); dictionary *dict = yon_dictionary_get((dictionary**)&config_compare,current->key);
gboolean status=0; gboolean status=0;
status = yon_config_get_status(current->key); status = yon_config_get_status(current->key);
@ -394,8 +395,10 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
free(compare_string); free(compare_string);
} }
} }
}
if (config_compare){ if (config_compare){
for_dictionaries(current,config_compare){ for_dictionaries(current,config_compare){
if (!yon_config_check_ignore(current->key)){
GtkTreeIter iter; GtkTreeIter iter;
dictionary *dict = yon_dictionary_get((dictionary**)&current_loaded,current->key); dictionary *dict = yon_dictionary_get((dictionary**)&current_loaded,current->key);
if (!dict){ if (!dict){
@ -414,6 +417,7 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
} }
} }
} }
}
GtkTreeIter iter; GtkTreeIter iter;
if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(window->list),&iter)){ if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(window->list),&iter)){
gtk_widget_destroy(window->Window); gtk_widget_destroy(window->Window);
@ -744,6 +748,7 @@ void on_root_access(GtkWidget *self, template_main_window *widgets){
} }
if (getuid()!=0){ if (getuid()!=0){
argline = yon_char_unite("setsid /usr/bin/bash -c 'pkexec ",argline,"'; exit",NULL); argline = yon_char_unite("setsid /usr/bin/bash -c 'pkexec ",argline,"'; exit",NULL);
printf("%s\n",argline);
pthread_t thread_id; pthread_t thread_id;
pthread_create(&thread_id, NULL, (void *)on_root_get_root,argline); pthread_create(&thread_id, NULL, (void *)on_root_get_root,argline);
gtk_widget_destroy(widgets->Window); gtk_widget_destroy(widgets->Window);

Loading…
Cancel
Save