diff options
author | flow <thiagodonato300@gmail.com> | 2022-03-02 18:35:59 -0300 |
---|---|---|
committer | flow <thiagodonato300@gmail.com> | 2022-03-02 18:49:19 -0300 |
commit | 881b2f2b385f19d9b64a149fca3c3741a803a172 (patch) | |
tree | ff13eabfeec171560c2b8b90aa00db6a48e92691 /launcher/ui/pages/modplatform/flame/FlameModModel.cpp | |
parent | ca211558b5a4ee8b0dec3471c92f952002216532 (diff) | |
download | PrismLauncher-881b2f2b385f19d9b64a149fca3c3741a803a172.tar.gz PrismLauncher-881b2f2b385f19d9b64a149fca3c3741a803a172.tar.bz2 PrismLauncher-881b2f2b385f19d9b64a149fca3c3741a803a172.zip |
refactor: Use a single indexed pack for mods
Since there's little difference between them, let's remove duplication
and merge them.
Diffstat (limited to 'launcher/ui/pages/modplatform/flame/FlameModModel.cpp')
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlameModModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameModModel.cpp b/launcher/ui/pages/modplatform/flame/FlameModModel.cpp index e8afba5a..052f30d1 100644 --- a/launcher/ui/pages/modplatform/flame/FlameModModel.cpp +++ b/launcher/ui/pages/modplatform/flame/FlameModModel.cpp @@ -39,7 +39,7 @@ QVariant ListModel::data(const QModelIndex &index, int role) const return QString("INVALID INDEX %1").arg(pos); } - IndexedPack pack = modpacks.at(pos); + ModPlatform::IndexedPack pack = modpacks.at(pos); if(role == Qt::DisplayRole) { return pack.name; @@ -225,12 +225,12 @@ void ListModel::searchRequestFinished() return; } - QList<FlameMod::IndexedPack> newList; + QList<ModPlatform::IndexedPack> newList; auto packs = doc.array(); for(auto packRaw : packs) { auto packObj = packRaw.toObject(); - FlameMod::IndexedPack pack; + ModPlatform::IndexedPack pack; try { FlameMod::loadIndexedPack(pack, packObj); |