소스 검색

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.
Eric Bataille 10 년 전
부모
커밋
e42aee5da9
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 4
      obs/window-basic-main.cpp

+ 8 - 4
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();
 }