|
|
|
@ -166,7 +166,7 @@ void on_load_local(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void yon_save_proceed(char *path,YON_CONFIG_TYPE type){
|
|
|
|
void yon_save_proceed(char *path,YON_CONFIG_TYPE type){
|
|
|
|
if (!path||((type==YON_CONFIG_LOCAL&& main_config.load_mode==1)||(type==YON_CONFIG_GLOBAL&& main_config.load_mode==0)))
|
|
|
|
if (((type==YON_CONFIG_LOCAL&& main_config.load_mode==1)||(type==YON_CONFIG_GLOBAL&& main_config.load_mode==0)))
|
|
|
|
yon_config_save_registered(path);
|
|
|
|
yon_config_save_registered(path);
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
if (type==YON_CONFIG_BOTH)
|
|
|
|
if (type==YON_CONFIG_BOTH)
|
|
|
|
@ -1193,7 +1193,6 @@ void on_logrotate_apps_configure(GtkWidget *self, logrotate_window *window){
|
|
|
|
char *settings;
|
|
|
|
char *settings;
|
|
|
|
int cur_size=0;
|
|
|
|
int cur_size=0;
|
|
|
|
int found=0;
|
|
|
|
int found=0;
|
|
|
|
gtk_list_store_append(main_config.logrotate_list,&itar);
|
|
|
|
|
|
|
|
gtk_tree_model_get(model,&iter,0,&name,1,&paths,2,&settings,-1);
|
|
|
|
gtk_tree_model_get(model,&iter,0,&name,1,&paths,2,&settings,-1);
|
|
|
|
config_str cur = yon_char_parse(paths,&cur_size,"\n");
|
|
|
|
config_str cur = yon_char_parse(paths,&cur_size,"\n");
|
|
|
|
int valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(main_config.logrotate_list),&itor);
|
|
|
|
int valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(main_config.logrotate_list),&itor);
|
|
|
|
@ -1213,6 +1212,7 @@ void on_logrotate_apps_configure(GtkWidget *self, logrotate_window *window){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gtk_list_store_append(main_config.logrotate_list,&itar);
|
|
|
|
settings = yon_char_replace(settings,",\t",",");
|
|
|
|
settings = yon_char_replace(settings,",\t",",");
|
|
|
|
if (settings[0]==',') yon_char_divide_search(settings,",",-1);
|
|
|
|
if (settings[0]==',') yon_char_divide_search(settings,",",-1);
|
|
|
|
yon_config_register(LOGROTATE(yon_char_replace(paths,"\n",",")),"logging",settings);
|
|
|
|
yon_config_register(LOGROTATE(yon_char_replace(paths,"\n",",")),"logging",settings);
|
|
|
|
|