mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-28 06:21:23 +00:00
fix: hotkeys setting from pwsp-gui (#56)
* refactor: do not overwrite incorrect hotkeys config * fix: hotkeys not saved via pwsp-gui
This commit is contained in:
committed by
GitHub
parent
cb56cb3a04
commit
42c0170044
+8
-3
@@ -221,16 +221,21 @@ impl SoundpadGui {
|
||||
.to_string_lossy()
|
||||
.to_string();
|
||||
let action = Request::play(&file_path.to_string_lossy(), false);
|
||||
make_request_async(Request::set_hotkey_action(&slot_name, &action));
|
||||
make_request_async(Request::set_hotkey_key(&slot_name, &chord));
|
||||
|
||||
make_request_async(Request::set_hotkey_action_and_key(
|
||||
&slot_name, &action, &chord,
|
||||
));
|
||||
|
||||
self.app_state
|
||||
.hotkey_config
|
||||
.set_slot(slot_name.clone(), action);
|
||||
self.app_state
|
||||
.hotkey_config
|
||||
.set_key_chord(&slot_name, Some(chord));
|
||||
.set_key_chord(&slot_name, Some(chord.clone()));
|
||||
}
|
||||
self.app_state.hotkey_capture_active = false;
|
||||
self.app_state.assigning_hotkey_slot = None;
|
||||
self.app_state.assigning_hotkey_for_file = None;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user