From 0eceb5e3e342acba03ee1a4deac5973962ed0ec0 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Mon, 19 Jun 2017 11:17:09 -0500 Subject: [PATCH] Save settings after every solved puzzle --- EduNetworkBuilder/NBSettings.cs | 6 ++++++ EduNetworkBuilder/Network.cs | 1 + 2 files changed, 7 insertions(+) diff --git a/EduNetworkBuilder/NBSettings.cs b/EduNetworkBuilder/NBSettings.cs index b407728..649bff6 100644 --- a/EduNetworkBuilder/NBSettings.cs +++ b/EduNetworkBuilder/NBSettings.cs @@ -108,6 +108,12 @@ namespace EduNetworkBuilder return Path.Combine(BaseDir, FileName); } + + public void Save() + { + Save(NB.IsRunningOnMono()); + } + public void Save(bool UsingMono) { if(UsingMono) diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index ba45796..9d798dd 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -813,6 +813,7 @@ namespace EduNetworkBuilder if (!oursettings.ScoreList.Contains(PuzzleName)) { oursettings.ScoreList.Add(PuzzleName); + oursettings.Save(); } } //kill all extra windows that no longer need to be open.