Mention that recording has to be restarted to apply changes. Fix stuck in repeat state if pressed while gsr-global-hotkey starts

This commit is contained in:
dec05eba
2024-12-26 15:22:57 +01:00
parent ec6d4090af
commit e5b745d696
11 changed files with 119 additions and 18 deletions

View File

@@ -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;

View File

@@ -27,7 +27,6 @@ namespace gsr {
struct SupportedCaptureOptions {
bool window = false;
bool focused = false;
bool screen = false;
bool portal = false;
std::vector<GsrMonitor> monitors;
};

View File

@@ -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();