mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Add menu options to open settings folders
Adds "Show Settings Folder" and "Show Profile Folder" items to the file menu.
This commit is contained in:
parent
f9314128ea
commit
7c97e21a1f
|
@ -231,6 +231,8 @@ Basic.MainMenu.File.Import="&Import"
|
|||
Basic.MainMenu.File.ShowRecordings="Show &Recordings"
|
||||
Basic.MainMenu.File.Remux="Re&mux Recordings"
|
||||
Basic.MainMenu.File.Settings="&Settings"
|
||||
Basic.MainMenu.File.ShowSettingsFolder="Show Settings Folder"
|
||||
Basic.MainMenu.File.ShowProfileFolder="Show Profile Folder"
|
||||
Basic.MainMenu.File.Exit="E&xit"
|
||||
|
||||
# basic mode edit menu
|
||||
|
|
|
@ -570,6 +570,8 @@
|
|||
<addaction name="actionRemux"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="action_Settings"/>
|
||||
<addaction name="actionShowSettingsFolder"/>
|
||||
<addaction name="actionShowProfileFolder"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionE_xit"/>
|
||||
</widget>
|
||||
|
@ -994,6 +996,16 @@
|
|||
<string>Remove</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShowSettingsFolder">
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.File.ShowSettingsFolder</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShowProfileFolder">
|
||||
<property name="text">
|
||||
<string>Basic.MainMenu.File.ShowProfileFolder</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
|
|
@ -3040,6 +3040,26 @@ void OBSBasic::on_actionWebsite_triggered()
|
|||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionShowSettingsFolder_triggered()
|
||||
{
|
||||
char path[512];
|
||||
int ret = GetConfigPath(path, 512, "obs-studio");
|
||||
if (ret <= 0)
|
||||
return;
|
||||
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionShowProfileFolder_triggered()
|
||||
{
|
||||
char path[512];
|
||||
int ret = GetProfilePath(path, 512, "");
|
||||
if (ret <= 0)
|
||||
return;
|
||||
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||
}
|
||||
|
||||
void OBSBasic::on_preview_customContextMenuRequested(const QPoint &pos)
|
||||
{
|
||||
CreateSourcePopupMenu(ui->sources->currentItem(), true);
|
||||
|
|
|
@ -356,6 +356,9 @@ private slots:
|
|||
void on_actionRenameProfile_triggered();
|
||||
void on_actionRemoveProfile_triggered();
|
||||
|
||||
void on_actionShowSettingsFolder_triggered();
|
||||
void on_actionShowProfileFolder_triggered();
|
||||
|
||||
void logUploadFinished(const QString &text, const QString &error);
|
||||
|
||||
void updateFileFinished(const QString &text, const QString &error);
|
||||
|
|
Loading…
Reference in a new issue