mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Add option to disable hotkeys, add gsr-ui-cli tool to control gsr-ui remotely
This commit is contained in:
@@ -43,6 +43,7 @@ namespace gsr {
|
||||
struct MainConfig {
|
||||
int32_t config_file_version = 0;
|
||||
bool software_encoding_warning_shown = false;
|
||||
bool enable_hotkeys = true;
|
||||
std::string tint_color;
|
||||
};
|
||||
|
||||
|
||||
@@ -58,6 +58,8 @@ namespace gsr {
|
||||
bool is_open() const;
|
||||
bool should_exit(std::string &reason) const;
|
||||
void exit();
|
||||
|
||||
const Config& get_config() const;
|
||||
private:
|
||||
void xi_setup();
|
||||
void handle_xi_events();
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace gsr {
|
||||
private:
|
||||
std::unique_ptr<Subsection> create_appearance_subsection(ScrollablePage *parent_page);
|
||||
std::unique_ptr<Subsection> create_startup_subsection(ScrollablePage *parent_page);
|
||||
std::unique_ptr<Subsection> create_hotkey_subsection(ScrollablePage *parent_page);
|
||||
std::unique_ptr<Button> create_exit_program_button();
|
||||
std::unique_ptr<Button> create_go_back_to_old_ui_button();
|
||||
std::unique_ptr<Subsection> create_application_options_subsection(ScrollablePage *parent_page);
|
||||
@@ -43,5 +44,6 @@ namespace gsr {
|
||||
PageStack *page_stack = nullptr;
|
||||
RadioButton *tint_color_radio_button_ptr = nullptr;
|
||||
RadioButton *startup_radio_button_ptr = nullptr;
|
||||
RadioButton *enable_hotkeys_radio_button_ptr = nullptr;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user