aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2022-11-02 08:43:42 +0000
committerTheKodeToad <TheKodeToad@proton.me>2022-11-02 08:43:46 +0000
commit8dfa3393dc59a386123c84dd30287bf9f1d17faf (patch)
treef80dbe2da7cd2e33c7a2c2ba30dc15990546e7cc /launcher/ui/pages/modplatform
parent576867605dc09b1d117598908d41482e168fbc95 (diff)
downloadPrismLauncher-8dfa3393dc59a386123c84dd30287bf9f1d17faf.tar.gz
PrismLauncher-8dfa3393dc59a386123c84dd30287bf9f1d17faf.tar.bz2
PrismLauncher-8dfa3393dc59a386123c84dd30287bf9f1d17faf.zip
Formatting and forward-declaration
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/pages/modplatform')
-rw-r--r--launcher/ui/pages/modplatform/ModPage.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/launcher/ui/pages/modplatform/ModPage.cpp b/launcher/ui/pages/modplatform/ModPage.cpp
index f269fc72..af16eaef 100644
--- a/launcher/ui/pages/modplatform/ModPage.cpp
+++ b/launcher/ui/pages/modplatform/ModPage.cpp
@@ -257,17 +257,15 @@ void ModPage::openUrl(const QUrl& url)
int prefixLength;
const char* page;
- if ((url.host() == "modrinth.com" || url.host() == "www.modrinth.com")
- && url.path().startsWith("/mod/")) {
+ if ((url.host() == "modrinth.com" || url.host() == "www.modrinth.com") && url.path().startsWith("/mod/")) {
prefixLength = 5;
page = "modrinth";
- } else if (APPLICATION->capabilities() & Application::SupportsFlame
- && (url.host() == "curseforge.com" || url.host() == "www.curseforge.com")
- && url.path().toLower().startsWith("/minecraft/mc-mods/")) {
+ } else if (APPLICATION->capabilities() & Application::SupportsFlame &&
+ (url.host() == "curseforge.com" || url.host() == "www.curseforge.com") &&
+ url.path().toLower().startsWith("/minecraft/mc-mods/")) {
prefixLength = 19;
page = "curseforge";
- }
- else
+ } else
prefixLength = 0;
if (prefixLength != 0) {
@@ -312,7 +310,6 @@ void ModPage::openUrl(const QUrl& url)
QDesktopServices::openUrl(url);
}
-
/******** Make changes to the UI ********/
void ModPage::retranslate()