diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-26 15:22:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-26 15:22:57 +0100 |
commit | e5b745d696c3ea14bfa9f51f75825befaa94a924 (patch) | |
tree | 99007ec672793771419dd78ecd90bf3554a3dab7 /include | |
parent | ec6d4090af22db59991e9c621238c96795814379 (diff) |
Mention that recording has to be restarted to apply changes. Fix stuck in repeat state if pressed while gsr-global-hotkey starts
Diffstat (limited to 'include')
-rw-r--r-- | include/Config.hpp | 5 | ||||
-rw-r--r-- | include/GsrInfo.hpp | 1 | ||||
-rw-r--r-- | include/gui/SettingsPage.hpp | 2 |
3 files changed, 7 insertions, 1 deletions
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<GsrMonitor> 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<void()> on_config_changed; private: std::unique_ptr<RadioButton> create_view_radio_button(); std::unique_ptr<ComboBox> create_record_area_box(); |