From e42aee5da9babaab08f7301d7354303f47512f7c Mon Sep 17 00:00:00 2001 From: Eric Bataille Date: Thu, 4 Jun 2015 20:15:56 +0200 Subject: [PATCH] UI: Use correct output folder for Show/Remux Ensures that the "Show Recordings" an "Remux Recordings" file menu items will open the recordings folder from the currently active output mode rather than always the simple output mode. --- obs/window-basic-main.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/obs/window-basic-main.cpp b/obs/window-basic-main.cpp index 2f8fdb718..c916ea0d9 100644 --- a/obs/window-basic-main.cpp +++ b/obs/window-basic-main.cpp @@ -1950,15 +1950,19 @@ void OBSBasic::on_action_Save_triggered() void OBSBasic::on_actionShow_Recordings_triggered() { - const char *path = config_get_string(basicConfig, - "SimpleOutput", "FilePath"); + const char *mode = config_get_string(basicConfig, "Output", "Mode"); + const char *path = strcmp(mode, "Advanced") ? + config_get_string(basicConfig, "SimpleOutput", "FilePath") : + config_get_string(basicConfig, "AdvOut", "RecFilePath"); QDesktopServices::openUrl(QUrl::fromLocalFile(path)); } void OBSBasic::on_actionRemux_triggered() { - const char *path = config_get_string(basicConfig, - "SimpleOutput", "FilePath"); + const char *mode = config_get_string(basicConfig, "Output", "Mode"); + const char *path = strcmp(mode, "Advanced") ? + config_get_string(basicConfig, "SimpleOutput", "FilePath") : + config_get_string(basicConfig, "AdvOut", "RecFilePath"); OBSRemux remux(path, this); remux.exec(); }