diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-01 20:10:48 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-01 20:10:48 +0100 |
commit | 6fbd8b0dd369c704b21c8757c1f66e55dcf1cb91 (patch) | |
tree | f4b52fadb7d6cf2bf1139a17a73f8e70c10ad15b /include | |
parent | 0815da6f2c50750c5e5df6245ab18694402fb7c1 (diff) |
Add option to automatically turn on replay at system startup
Diffstat (limited to 'include')
-rw-r--r-- | include/Config.hpp | 1 | ||||
-rw-r--r-- | include/Overlay.hpp | 2 | ||||
-rw-r--r-- | include/gui/SettingsPage.hpp | 2 |
3 files changed, 4 insertions, 1 deletions
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<List> create_container_section(); std::unique_ptr<Entry> create_replay_time_entry(); std::unique_ptr<List> create_replay_time(); + std::unique_ptr<CheckBox> 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; |