change some settings for initial users

Store filepath for user files so we can update them individually
This commit is contained in:
Tim Young 2017-08-02 11:42:33 -05:00
parent f1da7f9d97
commit d31727efcc
1 changed files with 4 additions and 0 deletions

View File

@ -622,6 +622,9 @@ namespace EduNetworkBuilder
tPC.FullName = SH.FullName;
tPC.ChangePassword(SH.Password);
tPC.ChangePassAtFirstLogin = ForcePWChange;
tPC.UserSettings.AutoStartPuzzles = false; //They will start with homework
tPC.UserSettings.ChosenLanguage = CurrentUser.UserSettings.ChosenLanguage;
tPC.UserSettings.LanguageHasBeenChosen = true; //No need to start by prompting.
CurrentUser.Students.Add(tPC);
}
else
@ -679,6 +682,7 @@ namespace EduNetworkBuilder
if (File.Exists(FileName)) NumSkipped++;
else
{
PC.filepath = CurrentUser.StudentFilePath; //For now. This changes, but it helps for now.
NumMade++;
PC.Save(FileName);
}