aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-03-06 11:31:50 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-03-06 11:31:50 +0100
commit6545d250e8f3e10385cbf86f0d7f46feb7b2456c (patch)
treeff36d4b5f096427aac64db888b591ff9e50bebed /launcher/ui/widgets
parentb162351ff45a124b9f1df7658f4cfb8d607737a3 (diff)
downloadPrismLauncher-6545d250e8f3e10385cbf86f0d7f46feb7b2456c.tar.gz
PrismLauncher-6545d250e8f3e10385cbf86f0d7f46feb7b2456c.tar.bz2
PrismLauncher-6545d250e8f3e10385cbf86f0d7f46feb7b2456c.zip
refactor: move help URL into buildconfig
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r--launcher/ui/widgets/PageContainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/ui/widgets/PageContainer.cpp b/launcher/ui/widgets/PageContainer.cpp
index 368bfe40..558a98fb 100644
--- a/launcher/ui/widgets/PageContainer.cpp
+++ b/launcher/ui/widgets/PageContainer.cpp
@@ -14,6 +14,7 @@
*/
#include "PageContainer.h"
+#include "BuildConfig.h"
#include "PageContainer_p.h"
#include <QStackedLayout>
@@ -207,7 +208,7 @@ void PageContainer::help()
QString pageId = m_currentPage->helpPage();
if (pageId.isEmpty())
return;
- DesktopServices::openUrl(QUrl("https://polymc.org/wiki/" + pageId));
+ DesktopServices::openUrl(QUrl(BuildConfig.HELP_URL.arg(pageId)));
}
}