mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
feat: update to tauri beta.24 (#1537)
* feat: update to tauri beta.24 * remove .tauri * pnpm build
This commit is contained in:
committed by
GitHub
parent
9973f8ee83
commit
22a17980ff
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { type WindowLabel, getCurrent } from "@tauri-apps/api/window";
|
||||
import { type WindowLabel, getCurrentWindow } from "@tauri-apps/api/window";
|
||||
|
||||
export enum StateFlags {
|
||||
SIZE = 1 << 0,
|
||||
@@ -36,7 +36,7 @@ async function restoreState(
|
||||
* Restore the state for the current window from disk.
|
||||
*/
|
||||
async function restoreStateCurrent(flags: StateFlags): Promise<void> {
|
||||
await restoreState(getCurrent().label, flags);
|
||||
await restoreState(getCurrentWindow().label, flags);
|
||||
}
|
||||
/**
|
||||
* Get the name of the file used to store window state.
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
"LICENSE"
|
||||
],
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.0-beta.14"
|
||||
"@tauri-apps/api": "2.0.0-beta.15"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user