From 4a536d0799685f3e530bc1782420e32a24b58ca2 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 17 Nov 2018 10:39:29 +0100 Subject: Only set scoring type if scoring is enabled, to avoid unnecessary table grouping (so that suspicious contracts work better) --- Aktywator/Bws.cs | 20 ++++++++++++++------ Aktywator/Resources/BuildDate.txt | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) (limited to 'Aktywator') diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index 3d111e2..75e9b13 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -584,13 +584,21 @@ namespace Aktywator Setting.save("BM2NameSource", "2", this, errors, section); Setting.save("BM2PINcode", "'" + main.xPINcode.Text + "'", this, errors, section); Setting.save("BM2ResultsOverview", main.xResultsOverview.SelectedIndex.ToString(), this, errors, section); - Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked, (this.getMySQLDatabaseForSection() != null) ? Convert.ToInt32(main.numTeamsTableOffset.Value) : 0); - int scoringType = main.getScoringType(); - Setting.saveScoringType(this.sql, scoringType, section); - if (scoringType > 1 && scoringType < 4) + if (main.xShowResults.Checked) { - MessageBox.Show("Pamiętaj o skonfigurowaniu opcji liczenia turnieju na IMP (średnia, odrzucanie w butlerze, uśrednianie cavendisha) w Bridgemate Control Software ***PRZED*** wystartowaniem sesji!", "Ustawienia obliczania wyników", - MessageBoxButtons.OK, MessageBoxIcon.Information); + Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked, (this.getMySQLDatabaseForSection() != null) ? Convert.ToInt32(main.numTeamsTableOffset.Value) : 0); + int scoringType = main.getScoringType(); + Setting.saveScoringType(this.sql, scoringType, section); + if (scoringType > 1 && scoringType < 4) + { + MessageBox.Show("Pamiętaj o skonfigurowaniu opcji liczenia turnieju na IMP (średnia, odrzucanie w butlerze, uśrednianie cavendisha) w Bridgemate Control Software ***PRZED*** wystartowaniem sesji!", "Ustawienia obliczania wyników", + MessageBoxButtons.OK, MessageBoxIcon.Information); + } + } + else + { + Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked, 0); + Setting.saveScoringType(this.sql, 1, section); } this.loadSettings(); } diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt index ee6b425..0ddc042 100644 --- a/Aktywator/Resources/BuildDate.txt +++ b/Aktywator/Resources/BuildDate.txt @@ -1 +1 @@ -2018-11-16 +2018-11-17 -- cgit v1.2.3