fix(window-state): fix command names

pull/328/head
Fabian-Lars 2 years ago committed by GitHub
parent eb55671f27
commit 9e97a55d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,14 +15,14 @@ export enum StateFlags {
* Save the state of all open windows to disk. * Save the state of all open windows to disk.
*/ */
async function saveWindowState(flags: StateFlags) { 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. * Restore the state for the specified window from disk.
*/ */
async function restoreState(label: WindowLabel, flags: StateFlags) { async function restoreState(label: WindowLabel, flags: StateFlags) {
invoke("plugin:window-state|js_restore_state", { label, flags }); invoke("plugin:window-state|restore_state", { label, flags });
} }
/** /**

Loading…
Cancel
Save