Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
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 wrap: on
line diff
--- a/FrmMain.cs Mon Apr 25 12:58:50 2011 +0000 +++ b/FrmMain.cs Sun May 01 10:51:30 2011 +0000 @@ -880,6 +880,17 @@ private void FrmMain_GameSystemChanged(GameSystem oldSystem, GameSystem newSystem) { SetAppTitle(); + + if (newSystem == null) + { + Preferences["currSystem"] = ""; + } + else + { + Preferences["currSystem"] = newSystem.ID; + } + + Preferences.Save(); RemoveCategoryButtons(); }