From 0c7cb1e33bd36e6fd724b472b765d9910f7cffc3 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Mon, 17 Apr 2023 17:30:12 +0200 Subject: [PATCH] Update plugins/window-state/guest-js/index.ts --- plugins/window-state/guest-js/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/window-state/guest-js/index.ts b/plugins/window-state/guest-js/index.ts index 7fe14d45..d3e0828e 100644 --- a/plugins/window-state/guest-js/index.ts +++ b/plugins/window-state/guest-js/index.ts @@ -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);