mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Open matching version of documentation for Launcher Help
This commit is contained in:
parent
357b190571
commit
86a82ae3f1
5 changed files with 16 additions and 3 deletions
|
@ -4,9 +4,12 @@
|
|||
#include <QString>
|
||||
#include <QUrl>
|
||||
|
||||
#include <components/version/version.hpp>
|
||||
|
||||
void Misc::HelpViewer::openHelp(const char* url)
|
||||
{
|
||||
QString link{ OPENMW_DOC_BASEURL };
|
||||
std::string_view docsUrl = Version::getDocumentationUrl();
|
||||
QString link = QString::fromUtf8(docsUrl.data(), docsUrl.size());
|
||||
link.append(url);
|
||||
QDesktopServices::openUrl(QUrl(link));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue