diff options
author | Alexandru Ionut Tripon <alexandru.tripon97@gmail.com> | 2023-06-23 14:25:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 14:25:21 +0300 |
commit | c5ea8367aaf9d61a6362427a55206d8891f40cda (patch) | |
tree | 4f5ee7739ce523abad514e1dc0e052a6247ae009 | |
parent | f8adb508ab0152af76829e0fdee92b451dcc1acf (diff) | |
download | PrismLauncher-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.cpp | 3 |
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) { |