feat(window-state): support using a custom filename (#1138)

* feat(window-state): support using a custom filename

ref: https://github.com/tauri-apps/plugins-workspace/pull/1079

* generate api

* fmt
This commit is contained in:
Amr Bashir
2024-04-03 21:29:48 +02:00
committed by GitHub
parent f9bcc1c21d
commit 0e9541fe89
6 changed files with 53 additions and 6 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"window-state": "patch"
"window-state-js": "patch"
---
Add `Builder::with_filename` to support using a custom filename. Also add `AppHandleExt::file_name` and a similar function in JS, to retrieve it later.
@@ -0,0 +1,5 @@
---
"window-state": "patch"
---
**Breaking change**: Renamed `STATE_FILENAME` const to `DEFAULT_FILENAME`.