UI: Show link to release notes in Help menu
This commit is contained in:
parent
43ae532d2a
commit
b429d00440
4 changed files with 23 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue