aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Ionut Tripon <alexandru.tripon97@gmail.com>2023-06-23 14:25:21 +0300
committerGitHub <noreply@github.com>2023-06-23 14:25:21 +0300
commitc5ea8367aaf9d61a6362427a55206d8891f40cda (patch)
tree4f5ee7739ce523abad514e1dc0e052a6247ae009
parentf8adb508ab0152af76829e0fdee92b451dcc1acf (diff)
downloadPrismLauncher-c5ea8367aaf9d61a6362427a55206d8891f40cda.tar.gz
PrismLauncher-c5ea8367aaf9d61a6362427a55206d8891f40cda.tar.bz2
PrismLauncher-c5ea8367aaf9d61a6362427a55206d8891f40cda.zip
Update launcher/ui/themes/CatPack.cpp
Co-authored-by: TheKodeToad <TheKodeToad@proton.me> Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
-rw-r--r--launcher/ui/themes/CatPack.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/ui/themes/CatPack.cpp b/launcher/ui/themes/CatPack.cpp
index 2d5653a6..bee63202 100644
--- a/launcher/ui/themes/CatPack.cpp
+++ b/launcher/ui/themes/CatPack.cpp
@@ -78,7 +78,8 @@ JsonCatPack::JsonCatPack(QFileInfo& manifestInfo) : BasicCatPack(manifestInfo.di
const auto root = doc.object();
m_name = Json::requireString(root, "name", "Catpack name");
auto id = Json::ensureString(root, "id", "", "Catpack ID");
- m_id = id.isEmpty() ? m_id : id;
+ if (!id.isEmpty())
+ m_id = id;
m_defaultPath = FS::PathCombine(path, Json::requireString(root, "default", "Deafult Cat"));
auto variants = Json::ensureArray(root, "variants", QJsonArray(), "Catpack Variants");
for (auto v : variants) {