change keybind test

This commit is contained in:
PandaDEV 2024-08-27 17:15:37 +10:00
parent 0b077a9b2e
commit ebf6e0311f
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C
8 changed files with 780 additions and 531 deletions

View file

@ -30,8 +30,8 @@ fn main() {
)
.setup(|app| {
let app_handle = app.handle().clone();
#[cfg(not(target_os = "macos"))]
// #[cfg(not(target_os = "macos"))]
api::hotkeys::setup(app_handle.clone());
api::tray::setup(app)?;
api::database::setup(app)?;
@ -74,6 +74,10 @@ fn main() {
api::clipboard::get_image_path,
api::clipboard::write_and_paste,
api::clipboard::read_image,
api::hotkeys::start_keybind_capture,
api::hotkeys::stop_keybind_capture,
api::hotkeys::get_current_keybind,
api::hotkeys::save_keybind,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");