Allow writing new blocks to config (#956)

* Fix bug with writing new blocks to config

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>

* Always assign the block regardless of key presence

---------

Co-authored-by: Garrett Cox <garrettjcox@gmail.com>
This commit is contained in:
Eblo
2025-11-20 19:54:38 -05:00
committed by GitHub
co-authored by Garrett Cox
parent e279d4785e
commit 3ef24c3d16
+1 -3
View File
@@ -154,9 +154,7 @@ void Config::SetBlock(const std::string& key, nlohmann::json block) {
}
}
} else {
if (gjson.contains(key)) {
gjson[key] = block;
}
gjson[key] = block;
}
mFlattenedJson = gjson.flatten();
Save();