mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 03:46:58 +03:00
removed some duplicate code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
ab3bfb0f74
commit
29cff14fd6
52 changed files with 928 additions and 2318 deletions
|
|
@ -14,7 +14,9 @@
|
|||
|
||||
namespace ResourceDownload {
|
||||
|
||||
ModModel::ModModel(BaseInstance& base_inst, ResourceAPI* api) : ResourceModel(api), m_base_instance(base_inst) {}
|
||||
ModModel::ModModel(BaseInstance& base_inst, ResourceAPI* api, QString debugName, QString metaEntryBase)
|
||||
: ResourceModel(api), m_base_instance(base_inst), m_debugName(debugName + " (Model)"), m_metaEntryBase(metaEntryBase)
|
||||
{}
|
||||
|
||||
/******** Make data requests ********/
|
||||
|
||||
|
|
@ -60,7 +62,7 @@ ResourceAPI::VersionSearchArgs ModModel::createVersionsArguments(const QModelInd
|
|||
if (m_filter->loaders)
|
||||
loaders = m_filter->loaders;
|
||||
|
||||
return { pack, versions, loaders };
|
||||
return { pack, versions, loaders, ModPlatform::ResourceType::Mod };
|
||||
}
|
||||
|
||||
ResourceAPI::ProjectInfoArgs ModModel::createInfoArguments(const QModelIndex& entry)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue