Fixed users parsing

pull/166/head
Администратор 1 year ago
parent 5d307b6cb4
commit 20c1e552c8

@ -8,6 +8,7 @@ int yon_load_proceed(YON_CONFIG_TYPE type){
yon_config_clean();
yon_config_load_config(YON_CONFIG_DEFAULT,config_get_default_command,NULL);
if (type==YON_CONFIG_GLOBAL){
yon_debug_output("%s\n",yon_char_unite(config_get_command("global"),NULL));
yon_config_load_config(type,config_get_command("global"),NULL);
}
if (type==YON_CONFIG_LOCAL){
@ -80,7 +81,7 @@ void yon_interface_update(main_window *widgets){
int size;
GtkTreeIter iter;
char *def_groups = yon_config_get_by_key(USERGROUPS_parameter);
config_str users = yon_config_get_all_by_key(USERADD_parameter,&size);
config_str users = yon_config_get_all_by_key(USERADD_SEARCH_macro,&size);
if (users){
for (int i=0;i<size;i++){
gtk_list_store_append(widgets->UsersList,&iter);

Loading…
Cancel
Save