diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-17 00:44:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-17 00:44:57 +0100 |
commit | d6b4fb5ba9aa4329859ad79d612a39fc97e1b7db (patch) | |
tree | f0bdba5106236ea4a05065022d56fa17e6b3feb8 /src/gui | |
parent | 688ad1e265d0a244d93fe7a51194158856018040 (diff) |
Query audio when adding them
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/SettingsPage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp index ad7960a..51951dd 100644 --- a/src/gui/SettingsPage.cpp +++ b/src/gui/SettingsPage.cpp @@ -208,6 +208,7 @@ namespace gsr { std::unique_ptr<Button> SettingsPage::create_add_audio_device_button() { auto add_audio_track_button = std::make_unique<Button>(&get_theme().body_font, "Add audio device", mgl::vec2f(0.0f, 0.0f), mgl::Color(0, 0, 0, 120)); add_audio_track_button->on_click = [this]() { + audio_devices = get_audio_devices(); audio_devices_list_ptr->add_widget(create_audio_device()); }; return add_audio_track_button; @@ -281,6 +282,7 @@ namespace gsr { auto add_application_audio_button = std::make_unique<Button>(&get_theme().body_font, "Add application audio", mgl::vec2f(0.0f, 0.0f), mgl::Color(0, 0, 0, 120)); add_application_audio_button->on_click = [this]() { + application_audio = get_application_audio(); application_audio_list_ptr->add_widget(create_application_audio()); }; list->add_widget(std::move(add_application_audio_button)); |