UI: Show link to release notes in Help menu

This commit is contained in:
Matt Gajownik
2020-03-22 11:32:01 +11:00
committed by Lain
parent 43ae532d2a
commit b429d00440
4 changed files with 23 additions and 0 deletions

View File

@@ -523,6 +523,10 @@ OBSBasic::OBSBasic(QWidget *parent)
QPoint newPos = curPos + statsDockPos;
statsDock->move(newPos);
#ifdef HAVE_OBSCONFIG_H
ui->actionReleaseNotes->setVisible(true);
#endif
ui->previewDisabledWidget->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->enablePreviewButton, &QPushButton::clicked, this,
&OBSBasic::TogglePreview);
@@ -8308,6 +8312,14 @@ void OBSBasic::on_actionShowWhatsNew_triggered()
#endif
}
void OBSBasic::on_actionReleaseNotes_triggered()
{
QString addr("https://github.com/obsproject/obs-studio/releases");
QUrl url(QString("%1/%2").arg(addr, obs_get_version_string()),
QUrl::TolerantMode);
QDesktopServices::openUrl(url);
}
void OBSBasic::on_actionShowSettingsFolder_triggered()
{
char path[512];