diff options
author | flow <thiagodonato300@gmail.com> | 2022-03-07 19:29:59 -0300 |
---|---|---|
committer | flow <thiagodonato300@gmail.com> | 2022-03-07 19:32:28 -0300 |
commit | 9c57b54a81a9026aa86a983a203df17c023eaa8d (patch) | |
tree | ea152742e106b92903acf083d598897243816b11 /launcher/ui/pages/modplatform/modrinth/ModrinthPage.h | |
parent | b131d3b2ecbe6a9be35088d8411927bcd30de896 (diff) | |
download | PrismLauncher-9c57b54a81a9026aa86a983a203df17c023eaa8d.tar.gz PrismLauncher-9c57b54a81a9026aa86a983a203df17c023eaa8d.tar.bz2 PrismLauncher-9c57b54a81a9026aa86a983a203df17c023eaa8d.zip |
refactor: move things around so that related things are close together
This also adds some comments around ModModel.cpp and ModPage.cpp to add
some ease of reading the code.
Also move some things from headers to cpp files.
Diffstat (limited to 'launcher/ui/pages/modplatform/modrinth/ModrinthPage.h')
-rw-r--r-- | launcher/ui/pages/modplatform/modrinth/ModrinthPage.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.h b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.h index f6d1eef0..6f387708 100644 --- a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.h +++ b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.h @@ -19,8 +19,7 @@ class ModrinthPage : public ModPage { inline QString debugName() const override { return tr("Modrinth"); } inline QString metaEntryBase() const override { return "ModrinthPacks"; }; - bool shouldDisplay() const override; + bool validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, QString loaderVer = "") const override; - private: - void onRequestVersionsSucceeded(QJsonDocument&, QString) override; + bool shouldDisplay() const override; }; |