From e2f9413e05d4565e16eff21cb3bb25f5a0b509d4 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 29 Aug 2017 01:31:03 +0200 Subject: Sometimes default value for BM2ShowPlayerNames is empty, this should parse to disabled option, too. --- Aktywator/Bws.cs | 3 ++- 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 -- cgit v1.2.3