aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-12 17:49:49 +0200
committerdec05eba <dec05eba@protonmail.com>2024-10-12 17:49:49 +0200
commit668a83d3b96e027c525ac3cf8bb87991c66168fd (patch)
tree20bd62b43821c4520188ee148cb1b2196f877201 /src
parentdfafdd9ef5e8fefa4ac2431c3243cf61c994a6f4 (diff)
Fix save directory empty if opening streaming page before recording page
Diffstat (limited to 'src')
-rw-r--r--src/Config.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Config.cpp b/src/Config.cpp
index ec2f777..88eead9 100644
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -13,7 +13,10 @@
namespace gsr {
Config::Config() {
+ const std::string default_save_directory = get_videos_dir();
streaming_config.record_options.video_quality = "custom";
+ record_config.save_directory = default_save_directory;
+ replay_config.save_directory = default_save_directory;
}
static std::optional<KeyValue> parse_key_value(std::string_view line) {