mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #19975 from Broxzier/bugfix/issue-form-fields
Fix: version info is not filled on bug report
This commit is contained in:
commit
698a06121f
|
@ -2722,10 +2722,11 @@ public:
|
||||||
break;
|
break;
|
||||||
case DDIDX_FILE_BUG_ON_GITHUB:
|
case DDIDX_FILE_BUG_ON_GITHUB:
|
||||||
{
|
{
|
||||||
std::string url = "https://github.com/OpenRCT2/OpenRCT2/issues/"
|
std::string url = "https://github.com/OpenRCT2/OpenRCT2/issues/new?"
|
||||||
"new?assignees=&labels=bug&template=bug_report.yaml";
|
"assignees=&labels=bug&template=bug_report.yaml";
|
||||||
|
// Automatically fill the "OpenRCT2 build" input
|
||||||
auto versionStr = String::URLEncode(gVersionInfoFull);
|
auto versionStr = String::URLEncode(gVersionInfoFull);
|
||||||
url.append("&openrct2_build=" + versionStr);
|
url.append("&f299dd2a20432827d99b648f73eb4649b23f8ec98d158d6f82b81e43196ee36b=" + versionStr);
|
||||||
OpenRCT2::GetContext()->GetUiContext()->OpenURL(url);
|
OpenRCT2::GetContext()->GetUiContext()->OpenURL(url);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue