From 3206458c8da8d950298558df54e90907a4cc539b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Oct 2024 14:54:33 +0100 Subject: Unpause when stopping recording if paused --- src/Overlay.cpp | 4 ++++ src/gui/SettingsPage.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Overlay.cpp b/src/Overlay.cpp index becf7d2..ed5c3a7 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -774,6 +774,10 @@ namespace gsr { record_dropdown_button_ptr->set_activated(false); record_dropdown_button_ptr->set_description("Not recording"); record_dropdown_button_ptr->set_item_icon("start", &get_theme().play_texture); + + record_dropdown_button_ptr->set_item_label("pause", "Pause"); + record_dropdown_button_ptr->set_item_icon("pause", &get_theme().pause_texture); + paused = false; } void Overlay::update_ui_streaming_started() { diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp index fc376ad..057497f 100644 --- a/src/gui/SettingsPage.cpp +++ b/src/gui/SettingsPage.cpp @@ -135,7 +135,7 @@ namespace gsr { std::unique_ptr SettingsPage::create_video_resolution_section() { auto video_resolution_list = std::make_unique(List::Orientation::VERTICAL); - video_resolution_list->add_widget(std::make_unique