From 6fbd8b0dd369c704b21c8757c1f66e55dcf1cb91 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 1 Nov 2024 20:10:48 +0100 Subject: Add option to automatically turn on replay at system startup --- include/Config.hpp | 1 + include/Overlay.hpp | 2 +- include/gui/SettingsPage.hpp | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Config.hpp b/include/Config.hpp index 1bb4e27..dc508cc 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -77,6 +77,7 @@ namespace gsr { struct ReplayConfig { RecordOptions record_options; + bool start_replay_automatically = false; bool show_replay_started_notifications = true; bool show_replay_stopped_notifications = true; bool show_replay_saved_notifications = true; diff --git a/include/Overlay.hpp b/include/Overlay.hpp index 218dee7..a138d07 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -71,7 +71,7 @@ namespace gsr { void update_ui_replay_stopped(); void on_press_save_replay(); - void on_press_start_replay(); + void on_press_start_replay(bool disable_notification); void on_press_start_record(); void on_press_start_stream(); bool update_compositor_texture(const mgl_monitor *monitor); diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp index 104cf18..4c5388d 100644 --- a/include/gui/SettingsPage.hpp +++ b/include/gui/SettingsPage.hpp @@ -81,6 +81,7 @@ namespace gsr { std::unique_ptr create_container_section(); std::unique_ptr create_replay_time_entry(); std::unique_ptr create_replay_time(); + std::unique_ptr create_start_replay_on_startup(); void add_replay_widgets(); void add_record_widgets(); @@ -142,6 +143,7 @@ namespace gsr { List *stream_key_list_ptr = nullptr; List *stream_url_list_ptr = nullptr; List *container_list_ptr = nullptr; + CheckBox *start_replay_automatically_ptr = nullptr; CheckBox *show_replay_started_notification_checkbox_ptr = nullptr; CheckBox *show_replay_stopped_notification_checkbox_ptr = nullptr; CheckBox *show_replay_saved_notification_checkbox_ptr = nullptr; -- cgit v1.2.3