feat: update setup hook to new syntax (#257)

This commit is contained in:
Lucas Fernandes Nogueira authored and GitHub committed 2023-02-16 13:42:26 -03:00
1 parent 738636472c
commit 22f987bf24
14 files changed
+384 -299

No files matched your search

+1 -1
View File
@@ -269,7 +269,7 @@ impl Builder {
pub fn build<R: Runtime>(self) -> TauriPlugin<R> {
let flags = self.state_flags;
PluginBuilder::new("window-state")
.setup(|app| {
.setup(|app, _api| {
let cache: Arc<Mutex<HashMap<String, WindowState>>> = if let Some(app_dir) =
app.path_resolver().app_config_dir()
{