fix small glitch where it kept wanting us to select a new language.
This commit is contained in:
parent
857c8750ba
commit
60444ee81c
@ -227,11 +227,18 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
if (Properties.Settings.Default.ScoreList == null)
|
if (Properties.Settings.Default.ScoreList == null)
|
||||||
Properties.Settings.Default.ScoreList = new System.Collections.Specialized.StringCollection();
|
Properties.Settings.Default.ScoreList = new System.Collections.Specialized.StringCollection();
|
||||||
|
if(NB.GetUser() == null)
|
||||||
|
{
|
||||||
|
Properties.Settings.Default.AutoStartPuzzles = AutoStartPuzzles;
|
||||||
|
Properties.Settings.Default.LanguageHasBeenChosen = LanguageHasBeenChosen;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Properties.Settings.Default.AutoStartPuzzles = AutoStartPuzzles;
|
||||||
|
Properties.Settings.Default.LanguageHasBeenChosen = LanguageHasBeenChosen;
|
||||||
|
}
|
||||||
Properties.Settings.Default.LastPath = LastPath;
|
Properties.Settings.Default.LastPath = LastPath;
|
||||||
Properties.Settings.Default.AutoStartPuzzles = AutoStartPuzzles;
|
|
||||||
Properties.Settings.Default.ChosenLanguage = ChosenLanguage;
|
Properties.Settings.Default.ChosenLanguage = ChosenLanguage;
|
||||||
Properties.Settings.Default.LanguageHasBeenChosen = LanguageHasBeenChosen;
|
|
||||||
Properties.Settings.Default.MainWindowX = MainWindowX;
|
Properties.Settings.Default.MainWindowX = MainWindowX;
|
||||||
Properties.Settings.Default.MainWindowY = MainWindowY;
|
Properties.Settings.Default.MainWindowY = MainWindowY;
|
||||||
Properties.Settings.Default.MainWindowHeight = MainWindowHeight;
|
Properties.Settings.Default.MainWindowHeight = MainWindowHeight;
|
||||||
|
@ -62,6 +62,8 @@ namespace EduNetworkBuilder
|
|||||||
if (CurrentUser == null && FileName == "")
|
if (CurrentUser == null && FileName == "")
|
||||||
{
|
{
|
||||||
//Prompt for a username
|
//Prompt for a username
|
||||||
|
NBSettings oldsettings = NB.GetSettings(); //Grab the old settings.
|
||||||
|
|
||||||
String Dest = NB.TextPromptBox(NB.Translate("PPF_EnterUserName"));
|
String Dest = NB.TextPromptBox(NB.Translate("PPF_EnterUserName"));
|
||||||
if (Dest == "") { Close(); return; }//No name given or canceled.
|
if (Dest == "") { Close(); return; }//No name given or canceled.
|
||||||
if (Dest == null) { Close(); return; }
|
if (Dest == null) { Close(); return; }
|
||||||
@ -76,6 +78,9 @@ namespace EduNetworkBuilder
|
|||||||
OFD.FileName = NB.Translate("PPF_SelectThisFolder");
|
OFD.FileName = NB.Translate("PPF_SelectThisFolder");
|
||||||
OFD.ShowDialog();
|
OFD.ShowDialog();
|
||||||
CurrentUser.filepath = Path.GetDirectoryName(OFD.FileName);
|
CurrentUser.filepath = Path.GetDirectoryName(OFD.FileName);
|
||||||
|
CurrentUser.UserSettings.AutoStartPuzzles = false;
|
||||||
|
CurrentUser.UserSettings.ChosenLanguage = oldsettings.ChosenLanguage;
|
||||||
|
CurrentUser.UserSettings.LanguageHasBeenChosen = true;
|
||||||
}
|
}
|
||||||
else if (CurrentUser == null)
|
else if (CurrentUser == null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user