changeset 195:983d96be91f5

Fixes #161: Re-implement "load last used game system by default" in WinForms * Save game system on change
author IBBoard <dev@ibboard.co.uk>
date Sun, 01 May 2011 10:51:30 +0000
parents 137ec6d45280
children 15148d255e50
files FrmMain.cs
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/FrmMain.cs	Mon Apr 25 12:58:50 2011 +0000
     1.2 +++ b/FrmMain.cs	Sun May 01 10:51:30 2011 +0000
     1.3 @@ -880,6 +880,17 @@
     1.4  		private void FrmMain_GameSystemChanged(GameSystem oldSystem, GameSystem newSystem)
     1.5  		{
     1.6  			SetAppTitle();
     1.7 +
     1.8 +            if (newSystem == null)
     1.9 +            {
    1.10 +                Preferences["currSystem"] = "";
    1.11 +            }
    1.12 +            else
    1.13 +            {
    1.14 +                Preferences["currSystem"] = newSystem.ID;
    1.15 +            }
    1.16 +
    1.17 +            Preferences.Save();
    1.18  			RemoveCategoryButtons();
    1.19  		}
    1.20