From 9e97a55d855297e4c7372ba20789613796bfd032 Mon Sep 17 00:00:00 2001 From: Fabian-Lars Date: Tue, 25 Apr 2023 11:12:46 +0200 Subject: [PATCH] fix(window-state): fix command names --- plugins/window-state/guest-js/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/window-state/guest-js/index.ts b/plugins/window-state/guest-js/index.ts index d3e0828e..11ead0f4 100644 --- a/plugins/window-state/guest-js/index.ts +++ b/plugins/window-state/guest-js/index.ts @@ -15,14 +15,14 @@ export enum StateFlags { * Save the state of all open windows to disk. */ async function saveWindowState(flags: StateFlags) { - invoke("plugin:window-state|js_save_window_state", { flags }); + invoke("plugin:window-state|save_window_state", { flags }); } /** * 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 }); + invoke("plugin:window-state|restore_state", { label, flags }); } /**