mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-08 12:24:09 +00:00
UI: Show link to release notes in Help menu
This commit is contained in:
parent
43ae532d2a
commit
b429d00440
|
@ -844,6 +844,7 @@ Basic.MainMenu.Help.Logs.ShowLogs="&Show Log Files"
|
|||
Basic.MainMenu.Help.Logs.UploadCurrentLog="Upload &Current Log File"
|
||||
Basic.MainMenu.Help.Logs.UploadLastLog="Upload &Previous Log File"
|
||||
Basic.MainMenu.Help.Logs.ViewCurrentLog="&View Current Log"
|
||||
Basic.MainMenu.Help.ReleaseNotes="Release Notes"
|
||||
Basic.MainMenu.Help.CheckForUpdates="Check For Updates"
|
||||
Basic.MainMenu.Help.Repair="Check File Integrity"
|
||||
Basic.MainMenu.Help.RestartSafeMode="Restart in Safe Mode"
|
||||
|
|
|
@ -536,6 +536,7 @@
|
|||
<addaction name="actionShowMacPermissions"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionShowWhatsNew"/>
|
||||
<addaction name="actionReleaseNotes"/>
|
||||
<addaction name="actionShowAbout"/>
|
||||
<addaction name="separator"/>
|
||||
</widget>
|
||||
|
@ -2011,6 +2012,14 @@
|
|||
<string>Basic.MainMenu.Help.RestartSafeMode</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReleaseNotes">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.Help.ReleaseNotes</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInteract">
|
||||
<property name="text">
|
||||
<string>Interact</string>
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -1131,6 +1131,7 @@ private slots:
|
|||
void on_actionHelpPortal_triggered();
|
||||
void on_actionWebsite_triggered();
|
||||
void on_actionDiscord_triggered();
|
||||
void on_actionReleaseNotes_triggered();
|
||||
|
||||
void on_preview_customContextMenuRequested();
|
||||
void ProgramViewContextMenuRequested();
|
||||
|
|
Loading…
Reference in a new issue