From fccecf023b22f2bb3530937d327194ba1ef8a4fc Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sun, 24 Sep 2023 01:30:03 +0200 Subject: [PATCH] no invalid json --- lib/CConfigHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/CConfigHandler.cpp b/lib/CConfigHandler.cpp index af4a99eca..c741e0e5e 100644 --- a/lib/CConfigHandler.cpp +++ b/lib/CConfigHandler.cpp @@ -65,7 +65,11 @@ void SettingsStorage::init(const std::string & dataFilename, const std::string & // Probably new install. Create config file to save settings to if (!CResourceHandler::get("local")->existsResource(confName)) + { CResourceHandler::get("local")->createResource(dataFilename); + if(schema.empty()) + invalidateNode(std::vector()); + } if(!schema.empty()) {