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:
jp9000
2015-07-03 18:35:33 -07:00
parent f9314128ea
commit 7c97e21a1f
4 changed files with 37 additions and 0 deletions
+20
View File
@@ -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);