mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Fix path for File > Show Recordings
In main menu, File > Show Recordings does not show the path for ffmpeg custom output when it is selected in Settings. This fixes the issue.
This commit is contained in:
parent
105e21cc37
commit
fdb622a069
|
@ -3596,9 +3596,13 @@ void OBSBasic::changeEvent(QEvent *event)
|
|||
void OBSBasic::on_actionShow_Recordings_triggered()
|
||||
{
|
||||
const char *mode = config_get_string(basicConfig, "Output", "Mode");
|
||||
const char *type = config_get_string(basicConfig, "AdvOut", "RecType");
|
||||
const char *adv_path = strcmp(type, "Standard") ?
|
||||
config_get_string(basicConfig, "AdvOut", "FFFilePath") :
|
||||
config_get_string(basicConfig, "AdvOut", "RecFilePath");
|
||||
const char *path = strcmp(mode, "Advanced") ?
|
||||
config_get_string(basicConfig, "SimpleOutput", "FilePath") :
|
||||
config_get_string(basicConfig, "AdvOut", "RecFilePath");
|
||||
config_get_string(basicConfig, "SimpleOutput", "FilePath") :
|
||||
adv_path;
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(path));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue