@tauri-apps/plugin-window-state 2.0.0-alpha.4 → 2.0.0-alpha.5
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.cjs +3 -3
- package/dist-js/index.js +1 -1
- package/package.json +2 -2
package/dist-js/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var core = require('@tauri-apps/api/core');
|
|
4
4
|
var window = require('@tauri-apps/api/window');
|
|
5
5
|
|
|
6
6
|
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
@@ -20,13 +20,13 @@ exports.StateFlags = void 0;
|
|
|
20
20
|
* Save the state of all open windows to disk.
|
|
21
21
|
*/
|
|
22
22
|
async function saveWindowState(flags) {
|
|
23
|
-
return
|
|
23
|
+
return core.invoke("plugin:window-state|save_window_state", { flags });
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Restore the state for the specified window from disk.
|
|
27
27
|
*/
|
|
28
28
|
async function restoreState(label, flags) {
|
|
29
|
-
return
|
|
29
|
+
return core.invoke("plugin:window-state|restore_state", { label, flags });
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Restore the state for the current window from disk.
|
package/dist-js/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/plugin-window-state",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.5",
|
|
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": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"LICENSE"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tauri-apps/api": "2.0.0-alpha.
|
|
24
|
+
"@tauri-apps/api": "2.0.0-alpha.13"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "rollup -c"
|