aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-09-07 10:34:50 -0300
committerGitHub <noreply@github.com>2022-09-07 10:34:50 -0300
commitf65d506f26fd8ba346646dc24ea6bca5e968d0c6 (patch)
treed6741565a3f85765b268cc992aaf6b6a2784c6bc /launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h
parent333dbca01ed15103b5a36a58a9faad7464ed1582 (diff)
parent42eb265624cb4a6461dc203a5ebfcb35ddd5d730 (diff)
downloadPrismLauncher-f65d506f26fd8ba346646dc24ea6bca5e968d0c6.tar.gz
PrismLauncher-f65d506f26fd8ba346646dc24ea6bca5e968d0c6.tar.bz2
PrismLauncher-f65d506f26fd8ba346646dc24ea6bca5e968d0c6.zip
Merge pull request #997 from flowln/fix_major_version_filter
Diffstat (limited to 'launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h')
-rw-r--r--launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h b/launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h
index 94985f63..40d82e6f 100644
--- a/launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h
+++ b/launcher/ui/pages/modplatform/modrinth/ModrinthModPage.h
@@ -44,7 +44,12 @@ class ModrinthModPage : public ModPage {
Q_OBJECT
public:
- explicit ModrinthModPage(ModDownloadDialog* dialog, BaseInstance* instance);
+ static ModrinthModPage* create(ModDownloadDialog* dialog, BaseInstance* instance)
+ {
+ return ModPage::create<ModrinthModPage>(dialog, instance);
+ }
+
+ ModrinthModPage(ModDownloadDialog* dialog, BaseInstance* instance);
~ModrinthModPage() override = default;
inline auto displayName() const -> QString override { return "Modrinth"; }