diff options
author | emkael <emkael@tlen.pl> | 2017-08-29 01:31:03 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-08-29 01:31:03 +0200 |
commit | e2f9413e05d4565e16eff21cb3bb25f5a0b509d4 (patch) | |
tree | 660a7f543dc68c175bfafe00876ed1e41ce1731f | |
parent | 04f94155ebcb52f3192435d5bc86f93dcf9ca3e3 (diff) |
Sometimes default value for BM2ShowPlayerNames is empty, this should parse to disabled option, too.
-rw-r--r-- | Aktywator/Bws.cs | 3 | ||||
-rw-r--r-- | Aktywator/Resources/BuildDate.txt | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index 3906ed9..d7b5552 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -298,7 +298,8 @@ namespace Aktywator } } main.xShowContract.Checked = (Setting.load("ShowContract", this, errors, section) == "0"); - main.xShowPlayerNames.Checked = (Setting.load("BM2ShowPlayerNames", this, errors, section) != "0"); + string playerNames = Setting.load("BM2ShowPlayerNames", this, errors, section); + main.xShowPlayerNames.Checked = !("".Equals(playerNames) || "0".Equals(playerNames)); main.xPINcode.Text = Setting.load("BM2PINcode", this, errors, section); int resultsOverview = 0; int.TryParse(Setting.load("BM2ResultsOverview", this, errors, section), out resultsOverview); diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt index b1e2ab1..a485840 100644 --- a/Aktywator/Resources/BuildDate.txt +++ b/Aktywator/Resources/BuildDate.txt @@ -1 +1 @@ -2017-08-25 +2017-08-29 |