Added mod reinstall dialog
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
7f6027498e
commit
1a0fd5f993
11 changed files with 165 additions and 8 deletions
|
@ -356,4 +356,19 @@ QList<BasePage*> ShaderPackDownloadDialog::getPages()
|
|||
return pages;
|
||||
}
|
||||
|
||||
void ModDownloadDialog::setModMetadata(std::shared_ptr<Metadata::ModStruct> meta)
|
||||
{
|
||||
switch (meta->provider) {
|
||||
case ModPlatform::ResourceProvider::MODRINTH:
|
||||
selectPage(Modrinth::id());
|
||||
break;
|
||||
case ModPlatform::ResourceProvider::FLAME:
|
||||
selectPage(Flame::id());
|
||||
break;
|
||||
}
|
||||
m_container->hidePageList();
|
||||
m_buttons.hide();
|
||||
auto page = selectedPage();
|
||||
page->openProject(meta->project_id);
|
||||
}
|
||||
} // namespace ResourceDownload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue