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 /Aktywator/Bws.cs | |
parent | 04f94155ebcb52f3192435d5bc86f93dcf9ca3e3 (diff) |
Sometimes default value for BM2ShowPlayerNames is empty, this should parse to disabled option, too.
Diffstat (limited to 'Aktywator/Bws.cs')
-rw-r--r-- | Aktywator/Bws.cs | 3 |
1 files changed, 2 insertions, 1 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); |