mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-30 21:59:36 +02:00
feat: update setup hook to new syntax (#257)
This commit is contained in:
1 parent
738636472c
commit
22f987bf24
14 files changed
+384
-299
No files matched your search
@@ -62,7 +62,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
plugin::Builder::new("positioner").invoke_handler(tauri::generate_handler![move_window]);
|
||||
|
||||
#[cfg(feature = "system-tray")]
|
||||
let plugin = plugin.setup(|app_handle| {
|
||||
let plugin = plugin.setup(|app_handle, _api| {
|
||||
app_handle.manage(Tray(std::sync::Mutex::new(None)));
|
||||
Ok(())
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user