@tauri-apps/plugin-window-state 2.0.0-beta.7 → 2.0.0-beta.8
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 +1 -1
- package/dist-js/index.js +2 -2
- package/package.json +2 -2
package/dist-js/index.cjs
CHANGED
|
@@ -32,7 +32,7 @@ async function restoreState(label, flags) {
|
|
|
32
32
|
* Restore the state for the current window from disk.
|
|
33
33
|
*/
|
|
34
34
|
async function restoreStateCurrent(flags) {
|
|
35
|
-
await restoreState(window.
|
|
35
|
+
await restoreState(window.getCurrentWindow().label, flags);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Get the name of the file used to store window state.
|
package/dist-js/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { invoke } from '@tauri-apps/api/core';
|
|
2
|
-
import {
|
|
2
|
+
import { getCurrentWindow } from '@tauri-apps/api/window';
|
|
3
3
|
|
|
4
4
|
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
5
5
|
// SPDX-License-Identifier: Apache-2.0
|
|
@@ -30,7 +30,7 @@ async function restoreState(label, flags) {
|
|
|
30
30
|
* Restore the state for the current window from disk.
|
|
31
31
|
*/
|
|
32
32
|
async function restoreStateCurrent(flags) {
|
|
33
|
-
await restoreState(
|
|
33
|
+
await restoreState(getCurrentWindow().label, flags);
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Get the name of the file used to store window state.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/plugin-window-state",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.8",
|
|
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-beta.
|
|
24
|
+
"@tauri-apps/api": "2.0.0-beta.15"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "rollup -c"
|