mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user