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
This commit is contained in:
flow
2022-05-15 22:16:52 -03:00
parent e92b7bd25e
commit 62e099ace5
3 changed files with 80 additions and 80 deletions

View File

@ -55,7 +55,7 @@ class InstanceImportTask : public InstanceTask
{
Q_OBJECT
public:
explicit InstanceImportTask(const QUrl sourceUrl);
explicit InstanceImportTask(const QUrl sourceUrl, QWidget* parent = nullptr);
bool canAbort() const override { return true; }
bool abort() override;
@ -94,4 +94,7 @@ private: /* data */
Flame,
Modrinth,
} m_modpackType = ModpackType::Unknown;
//FIXME: nuke
QWidget* m_parent;
};