refactor: move help URL into buildconfig

This commit is contained in:
Sefa Eyeoglu
2022-03-06 11:31:50 +01:00
parent b162351ff4
commit 6545d250e8
4 changed files with 9 additions and 1 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://polymc.org/wiki/" + pageId));
DesktopServices::openUrl(QUrl(BuildConfig.HELP_URL.arg(pageId)));
}
}