Save settings after every solved puzzle

This commit is contained in:
Tim Young 2017-06-19 11:17:09 -05:00
parent ad91b2065e
commit 0eceb5e3e3
2 changed files with 7 additions and 0 deletions

View File

@ -108,6 +108,12 @@ namespace EduNetworkBuilder
return Path.Combine(BaseDir, FileName); return Path.Combine(BaseDir, FileName);
} }
public void Save()
{
Save(NB.IsRunningOnMono());
}
public void Save(bool UsingMono) public void Save(bool UsingMono)
{ {
if(UsingMono) if(UsingMono)

View File

@ -813,6 +813,7 @@ namespace EduNetworkBuilder
if (!oursettings.ScoreList.Contains(PuzzleName)) if (!oursettings.ScoreList.Contains(PuzzleName))
{ {
oursettings.ScoreList.Add(PuzzleName); oursettings.ScoreList.Add(PuzzleName);
oursettings.Save();
} }
} }
//kill all extra windows that no longer need to be open. //kill all extra windows that no longer need to be open.