refactor: move help URL into buildconfig
This commit is contained in:
parent
b162351ff4
commit
6545d250e8
4 changed files with 9 additions and 1 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue