Formatting and forward-declaration
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user