feat: Allow themes and nodes to be downloaded from the content store

This commit is contained in:
WerWolv
2023-02-16 18:55:21 +01:00
parent d3d6a8a838
commit 5ccbfc1ff8
7 changed files with 606 additions and 97 deletions

View File

@@ -102,7 +102,8 @@ namespace hex::api {
if (theme.contains("base")) {
if (theme["base"].is_string()) {
changeTheme(theme["base"].get<std::string>());
if (theme["base"] != name)
changeTheme(theme["base"].get<std::string>());
} else {
hex::log::error("Theme '{}' has invalid base theme!", name);
}