Add File -> "Show Recordings" menu entry
parent
066d08ae46
commit
a64707a4f5
|
@ -144,6 +144,7 @@ Basic.Main.StopStreaming="Stop Streaming"
|
|||
Basic.MainMenu.File="&File"
|
||||
Basic.MainMenu.File.Export="&Export"
|
||||
Basic.MainMenu.File.Import="&Import"
|
||||
Basic.MainMenu.File.ShowRecordings="Show &Recordings"
|
||||
Basic.MainMenu.File.Settings="&Settings"
|
||||
Basic.MainMenu.File.Exit="E&xit"
|
||||
|
||||
|
|
|
@ -456,6 +456,8 @@
|
|||
<addaction name="action_Save"/>
|
||||
<addaction name="action_Open"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionShow_Recordings"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="action_Settings"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionE_xit"/>
|
||||
|
@ -643,6 +645,11 @@
|
|||
<string>Basic.MainMenu.File.Import</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShow_Recordings">
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.File.ShowRecordings</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_Settings">
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.File.Settings</string>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <obs.hpp>
|
||||
#include <QMessageBox>
|
||||
#include <QShowEvent>
|
||||
#include <QDesktopServices>
|
||||
#include <QFileDialog>
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
|
@ -1415,6 +1416,13 @@ void OBSBasic::on_action_Save_triggered()
|
|||
/* TODO */
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionShow_Recordings_triggered()
|
||||
{
|
||||
const char *path = config_get_string(basicConfig,
|
||||
"SimpleOutput", "FilePath");
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||
}
|
||||
|
||||
void OBSBasic::on_action_Settings_triggered()
|
||||
{
|
||||
OBSBasicSettings settings(this);
|
||||
|
|
|
@ -227,6 +227,7 @@ private slots:
|
|||
void on_action_New_triggered();
|
||||
void on_action_Open_triggered();
|
||||
void on_action_Save_triggered();
|
||||
void on_actionShow_Recordings_triggered();
|
||||
void on_action_Settings_triggered();
|
||||
void on_actionUploadCurrentLog_triggered();
|
||||
void on_actionUploadLastLog_triggered();
|
||||
|
|
Loading…
Reference in New Issue