Fix startup bug when running for first time
This commit is contained in:
parent
5db0ffac9d
commit
e0a65412dd
@ -44,6 +44,9 @@ namespace EduNetworkBuilder
|
||||
if (FromClass == null) return; //Break if we are going to error out.
|
||||
if (ToClass == null) return; //Break if we are going to error out.
|
||||
//
|
||||
if (Properties.Settings.Default.ScoreList == null)
|
||||
Properties.Settings.Default.ScoreList = new System.Collections.Specialized.StringCollection();
|
||||
|
||||
ToClass.LastPath = FromClass.LastPath;
|
||||
ToClass.AutoStartPuzzles = FromClass.AutoStartPuzzles;
|
||||
ToClass.ChosenLanguage = FromClass.ChosenLanguage;
|
||||
@ -84,6 +87,9 @@ namespace EduNetworkBuilder
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Properties.Settings.Default.ScoreList == null)
|
||||
Properties.Settings.Default.ScoreList = new System.Collections.Specialized.StringCollection();
|
||||
|
||||
LastPath = Properties.Settings.Default.LastPath;
|
||||
AutoStartPuzzles = Properties.Settings.Default.AutoStartPuzzles;
|
||||
ChosenLanguage = Properties.Settings.Default.ChosenLanguage;
|
||||
|
Loading…
Reference in New Issue
Block a user