Merge pull request #232 from Scrumplex/fix-help-links

Switch to polymc.org wiki
This commit is contained in:
Ezekiel Smith
2022-03-08 01:22:34 +11:00
committed by GitHub
4 changed files with 11 additions and 3 deletions

View File

@ -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://github.com/PolyMC/PolyMC/wiki/" + pageId));
DesktopServices::openUrl(QUrl(BuildConfig.HELP_URL.arg(pageId)));
}
}