Update plugins/window-state/guest-js/index.ts

pull/309/head
Fabian-Lars 2 years ago committed by GitHub
parent 51679ec721
commit 0c7cb1e33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,21 +12,21 @@ export enum StateFlags {
}
/**
* Saves all open windows state to disk
* Save the state of all open windows to disk.
*/
async function saveWindowState(flags: StateFlags) {
invoke("plugin:window-state|js_save_window_state", { flags });
}
/**
* Restore the specified window state from disk
* Restore the state for the specified window from disk.
*/
async function restoreState(label: WindowLabel, flags: StateFlags) {
invoke("plugin:window-state|js_restore_state", { label, flags });
}
/**
* Restore the current window state from disk
* Restore the state for the current window from disk.
*/
async function restoreStateCurrent(flags: StateFlags) {
restoreState(getCurrent().label, flags);

Loading…
Cancel
Save