added ability to set custom hotkey

This commit is contained in:
PandaDEV 2024-09-02 10:37:58 +10:00
parent 79dd783bf7
commit 5bb6f2249a
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C
8 changed files with 250 additions and 205 deletions

View file

@ -31,7 +31,7 @@ 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)?;
let _ = api::database::setup(app);
@ -74,8 +74,6 @@ 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::database::save_keybind,
api::database::get_keybind
])