diff options
author | flow <flowlnlnln@gmail.com> | 2022-05-15 22:16:52 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-05-15 22:16:52 -0300 |
commit | 62e099ace5db8e04bba684e6c2517291dcce3578 (patch) | |
tree | b83ac115e200d09d001b914a22f7249dda474861 /launcher/ui/pages/modplatform/modrinth | |
parent | e92b7bd25e9eccf293ff97652364def63a674df2 (diff) | |
download | PrismLauncher-62e099ace5db8e04bba684e6c2517291dcce3578.tar.gz PrismLauncher-62e099ace5db8e04bba684e6c2517291dcce3578.tar.bz2 PrismLauncher-62e099ace5db8e04bba684e6c2517291dcce3578.zip |
feat: better handling of optional mods
This disables the optional mods by default and tell the user about it.
Pretty hackish, but a better solution would involve the modrinth
metadata to have the mod names...
Also sorry for the diffs, my clangd went rogue x.x
Diffstat (limited to 'launcher/ui/pages/modplatform/modrinth')
-rw-r--r-- | launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp index fadad9df..f24d3651 100644 --- a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp +++ b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp @@ -251,7 +251,7 @@ void ModrinthPage::suggestCurrent() for (auto& ver : current.versions) { if (ver.id == selectedVersion) { - dialog->setSuggestedPack(current.name + " " + ver.version, new InstanceImportTask(ver.download_url)); + dialog->setSuggestedPack(current.name + " " + ver.version, new InstanceImportTask(ver.download_url, this)); auto iconName = current.iconName; m_model->getLogo(iconName, current.iconUrl.toString(), [this, iconName](QString logo) { dialog->setSuggestedIconFromFile(logo, iconName); }); |