pull/331/head
parent 379154fabb
commit 4b45279ecb

@ -34,7 +34,7 @@ int yon_users_save(main_window *widgets){
} }
} }
} }
yon_config_remove_by_args(DEFAULTUSER_parameter); yon_config_remove_by_args(DEFAULTUSER_parameter,NULL);
} }
if (!main_config.configure_mode){ if (!main_config.configure_mode){
@ -195,7 +195,12 @@ void yon_user_init(main_window *widgets){
g_object_set_data(G_OBJECT(user->MainBox),"widgets",widgets); g_object_set_data(G_OBJECT(user->MainBox),"widgets",widgets);
gtk_box_pack_start(GTK_BOX(widgets->UserAddBox),user->MainBox,0,0,0); gtk_box_pack_start(GTK_BOX(widgets->UserAddBox),user->MainBox,0,0,0);
gtk_entry_set_text(GTK_ENTRY(user->UsernameEntry),ADMINISTRATOR_LABEL); gtk_entry_set_text(GTK_ENTRY(user->UsernameEntry),ADMINISTRATOR_LABEL);
if (!yon_char_is_empty(default_user))
gtk_entry_set_text(GTK_ENTRY(user->LoginEntry),default_user); gtk_entry_set_text(GTK_ENTRY(user->LoginEntry),default_user);
else {
gtk_entry_set_text(GTK_ENTRY(user->LoginEntry),ADMINISTRATOR_LABEL);
}
if (!yon_char_is_empty(default_passwd))
gtk_entry_set_text(GTK_ENTRY(user->PasswordEntry),default_passwd); gtk_entry_set_text(GTK_ENTRY(user->PasswordEntry),default_passwd);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(user->AdminCheck),1); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(user->AdminCheck),1);
} }

Loading…
Cancel
Save