summaryrefslogtreecommitdiff
path: root/Aktywator/Bws.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-04-13 16:55:18 +0200
committeremkael <emkael@tlen.pl>2018-04-13 16:55:18 +0200
commit7b2f2c9e74a0e00f1fb12cba23fb218e470998eb (patch)
tree3920178480f336522807ef0d5d749087f771d22f /Aktywator/Bws.cs
parentd9a9ced98db04759739eebb6b07361670f097eaa (diff)
Section group setting saved in a uniform way
Diffstat (limited to 'Aktywator/Bws.cs')
-rw-r--r--Aktywator/Bws.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 1af237f..5695a00 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -552,15 +552,7 @@ 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);
- if (main.xGroupSections.Checked)
- {
- sql.query("UPDATE Tables SET `Group` = 1;");
- }
- else
- {
- sql.query("UPDATE Tables SET `Group` = `Section`;");
- }
-
+ Setting.saveSectionGroups(this.sql, main.xGroupSections.Checked);
this.loadSettings();
}