feat: bringing back shortcuts
This commit is contained in:
@ -3,6 +3,9 @@ mod state;
|
||||
mod utils;
|
||||
mod window;
|
||||
|
||||
#[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows"))]
|
||||
mod shortcut;
|
||||
|
||||
use state::new_shared_watcher_state;
|
||||
use window::setup_window;
|
||||
|
||||
@ -17,9 +20,15 @@ pub fn desktop() {
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.manage(watcher_state)
|
||||
.invoke_handler(tauri::generate_handler![commands::handle_selected_folder,])
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
commands::handle_selected_folder,
|
||||
shortcut::change_shortcut,
|
||||
shortcut::unregister_shortcut,
|
||||
shortcut::get_current_shortcut,
|
||||
])
|
||||
.setup(|app| {
|
||||
setup_window(app)?;
|
||||
shortcut::enable_shortcut(app);
|
||||
|
||||
Ok(())
|
||||
})
|
||||
|
Reference in New Issue
Block a user