From 45550ac5edd1967c3cbaf8a2c396e6a8bc83ca05 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 30 Sep 2017 20:36:32 +0200 Subject: Force-setting name-related settings on names loading --- Aktywator/Bws.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index fd24418..cde192a 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -691,15 +691,21 @@ namespace Aktywator } } } + StringBuilder errors = new StringBuilder(); List settings = new List(); settings.Add(new Setting("BM2NumberEntryEachRound", "integer", (tournament.type == Tournament.TYPE_TEAMY) ? "1" : "0")); settings.Add(new Setting("BM2NumberEntryPreloadValues", "integer", "1")); foreach (Setting s in settings) { s.createField(sql); + Setting.save(s.name, s.defaultStr, this, errors); } if (interactive) { + if (errors.Length > 0) + { + MessageBox.Show(errors.ToString(), "Błąd ustawiania opcji BWS", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } MessageBox.Show("Synchronizacja zakończona!\nPrzejrzanych nazwisk: " + count + "\nZmienionych: " + countNew, "Synchronizacja nazwisk", MessageBoxButtons.OK, MessageBoxIcon.Information); if (sql.selectOne("SELECT BM2ShowPlayerNames FROM Settings") != "1") -- cgit v1.2.3