mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-24 17:20:51 +02:00
feat: update setup hook to new syntax (#257)
This commit is contained in:
committed by
GitHub
parent
738636472c
commit
22f987bf24
@@ -98,7 +98,7 @@ pub fn init<R: Runtime>(
|
||||
) -> TauriPlugin<R> {
|
||||
Builder::new("autostart")
|
||||
.invoke_handler(tauri::generate_handler![enable, disable, is_enabled])
|
||||
.setup(move |app| {
|
||||
.setup(move |app, _api| {
|
||||
let mut builder = AutoLaunchBuilder::new();
|
||||
builder.set_app_name(&app.package_info().name);
|
||||
if let Some(args) = args {
|
||||
|
||||
Reference in New Issue
Block a user