Moved the selected resources to one list

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-05-03 00:49:54 +03:00
parent 61a2355618
commit f8bf71e152
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
13 changed files with 124 additions and 75 deletions

View file

@ -145,11 +145,12 @@ void ModPage::updateVersionList()
updateSelectionButton();
}
void ModPage::addResourceToDialog(ModPlatform::IndexedPack& pack, ModPlatform::IndexedVersion& version)
void ModPage::addResourceToPage(ModPlatform::IndexedPack& pack,
ModPlatform::IndexedVersion& version,
const std::shared_ptr<ResourceFolderModel> base_model)
{
bool is_indexed = !APPLICATION->settings()->get("ModMetadataDisabled").toBool();
m_parent_dialog->addResource(pack, version, is_indexed);
m_model->addPack(pack);
m_model->addPack(pack, version, base_model, is_indexed);
}
} // namespace ResourceDownload