mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-10 21:15:49 +09:00
Add 'restart replay on save' option
This commit is contained in:
@@ -166,6 +166,9 @@ namespace gsr {
|
||||
}
|
||||
|
||||
bool GlobalHotkeysLinux::bind_key_press(Hotkey hotkey, const std::string &id, GlobalHotkeyCallback callback) {
|
||||
if(process_id <= 0)
|
||||
return false;
|
||||
|
||||
if(bound_actions_by_id.find(id) != bound_actions_by_id.end())
|
||||
return false;
|
||||
|
||||
@@ -202,6 +205,9 @@ namespace gsr {
|
||||
}
|
||||
|
||||
void GlobalHotkeysLinux::unbind_all_keys() {
|
||||
if(process_id <= 0)
|
||||
return;
|
||||
|
||||
if(bound_actions_by_id.empty())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user