From 0cce15a8f68ca22a8b52b6728d458beb6affdbab Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Sat, 19 Sep 2026 11:25:04 +0200 Subject: [PATCH] [chore:] implementation for schema version 4 (adds module config) --- DataStore/Settings.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/DataStore/Settings.cs b/DataStore/Settings.cs index 09fecb4..a061eda 100644 --- a/DataStore/Settings.cs +++ b/DataStore/Settings.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -19,6 +20,8 @@ public class Settings public Customers customers = new(); public PdfExportSettings pdfExport { get; set; } = new(); + public ModuleConfig moduleConfig { get; set; } = new(); + public Settings() { _instance = this; @@ -70,6 +73,25 @@ public class Settings } } +public class ModuleConfig +{ + /// + /// Contains enabled modules and whether it's password-protected or not (non-existing-feature but soon) + /// + public List<(LCModule, bool)> EnabledModules = new(); +} + +public enum LCModule +{ + Addressmanagement, + Pricemanagement, + Wiki, + Staffmanagement, + UnifiedEndpointManagement, + Financemanagement +} + + public class PdfExportSettings { public double cellPaddingTopMm { get; set; } = 4;