@tauri-apps/plugin-window-state 2.2.3 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-js/index.d.ts +3 -3
- package/package.json +2 -2
package/dist-js/index.d.ts
CHANGED
|
@@ -11,15 +11,15 @@ export declare enum StateFlags {
|
|
|
11
11
|
/**
|
|
12
12
|
* Save the state of all open windows to disk.
|
|
13
13
|
*/
|
|
14
|
-
declare function saveWindowState(flags
|
|
14
|
+
declare function saveWindowState(flags?: StateFlags): Promise<void>;
|
|
15
15
|
/**
|
|
16
16
|
* Restore the state for the specified window from disk.
|
|
17
17
|
*/
|
|
18
|
-
declare function restoreState(label: WindowLabel, flags
|
|
18
|
+
declare function restoreState(label: WindowLabel, flags?: StateFlags): Promise<void>;
|
|
19
19
|
/**
|
|
20
20
|
* Restore the state for the current window from disk.
|
|
21
21
|
*/
|
|
22
|
-
declare function restoreStateCurrent(flags
|
|
22
|
+
declare function restoreStateCurrent(flags?: StateFlags): Promise<void>;
|
|
23
23
|
/**
|
|
24
24
|
* Get the name of the file used to store window state.
|
|
25
25
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/plugin-window-state",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Save window positions and sizes and restore them when the app is reopened.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"authors": [
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"LICENSE"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@tauri-apps/api": "^2.
|
|
28
|
+
"@tauri-apps/api": "^2.6.0"
|
|
29
29
|
}
|
|
30
30
|
}
|