From e5b745d696c3ea14bfa9f51f75825befaa94a924 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 26 Dec 2024 15:22:57 +0100 Subject: Mention that recording has to be restarted to apply changes. Fix stuck in repeat state if pressed while gsr-global-hotkey starts --- include/Config.hpp | 5 +++++ include/GsrInfo.hpp | 1 - include/gui/SettingsPage.hpp | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/Config.hpp b/include/Config.hpp index c61ca10..de96722 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -12,6 +12,9 @@ namespace gsr { struct ConfigHotkey { int64_t keysym = 0; uint32_t modifiers = 0; + + bool operator==(const ConfigHotkey &other) const; + bool operator!=(const ConfigHotkey &other) const; }; struct RecordOptions { @@ -94,6 +97,8 @@ namespace gsr { struct Config { Config(const SupportedCaptureOptions &capture_options); + bool operator==(const Config &other); + bool operator!=(const Config &other); MainConfig main_config; StreamingConfig streaming_config; diff --git a/include/GsrInfo.hpp b/include/GsrInfo.hpp index 6ec8e23..86df0b7 100644 --- a/include/GsrInfo.hpp +++ b/include/GsrInfo.hpp @@ -27,7 +27,6 @@ namespace gsr { struct SupportedCaptureOptions { bool window = false; bool focused = false; - bool screen = false; bool portal = false; std::vector monitors; }; diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp index 981c99a..1ab0cb2 100644 --- a/include/gui/SettingsPage.hpp +++ b/include/gui/SettingsPage.hpp @@ -32,6 +32,8 @@ namespace gsr { void load(); void save(); void on_navigate_away_from_page() override; + + std::function on_config_changed; private: std::unique_ptr create_view_radio_button(); std::unique_ptr create_record_area_box(); -- cgit v1.2.3