aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-11 22:09:40 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-11 22:09:40 +0200
commitbeb4441be84b92cc748c92dc6839279303cd27a4 (patch)
tree4e6b3813fa3160f037cacee05a62a33a21a652e4 /src/gui
parent7d6732a7d3d286507ce11565bd4736fa3b94659c (diff)
Fix loading audio tracks incorrect config, finish recording option
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/SettingsPage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp
index b7e87d2..a38aa45 100644
--- a/src/gui/SettingsPage.cpp
+++ b/src/gui/SettingsPage.cpp
@@ -678,9 +678,9 @@ namespace gsr {
save_config(config.value());
}
- void SettingsPage::load_audio_tracks() {
+ void SettingsPage::load_audio_tracks(RecordOptions &record_options) {
audio_devices_list_ptr->clear();
- for(const std::string &audio_track : config->replay_config.record_options.audio_tracks) {
+ for(const std::string &audio_track : record_options.audio_tracks) {
std::unique_ptr<List> audio_track_widget = create_audio_track();
ComboBox *audio_device_box = static_cast<ComboBox*>(audio_track_widget->get_child_widget_by_index(0));
audio_device_box->set_selected_item(audio_track);
@@ -695,7 +695,7 @@ namespace gsr {
framerate_entry_ptr->set_text(std::to_string(record_options.fps));
merge_audio_tracks_checkbox_ptr->set_checked(record_options.merge_audio_tracks);
- load_audio_tracks();
+ load_audio_tracks(record_options);
color_range_box_ptr->set_selected_item(record_options.color_range);
video_quality_box_ptr->set_selected_item(record_options.video_quality);
video_codec_box_ptr->set_selected_item(record_options.video_codec);