added ability to save hotkey into settings

This commit is contained in:
PandaDEV 2024-09-01 11:36:08 +10:00
parent 1370408129
commit 79dd783bf7
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C
4 changed files with 171 additions and 48 deletions

View file

@ -120,17 +120,4 @@ pub fn start_keybind_capture() {
#[tauri::command]
pub fn stop_keybind_capture() {
IS_CAPTURING_KEYBIND.store(false, Ordering::SeqCst);
}
#[tauri::command]
pub fn get_current_keybind() -> String {
// Implement logic to retrieve the current keybind from your configuration
"Meta+V".to_string() // Placeholder
}
#[tauri::command]
pub fn save_keybind(keybind: String) -> Result<(), String> {
// Implement logic to save the new keybind to your configuration
println!("Saving keybind: {}", keybind);
Ok(())
}