Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

fix: allow window-state plugin to save state on close

tw93bb653553b3d7
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 9bff5c8d..9715e560 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -155,10 +155,9 @@ pub fn run_app() {
window.hide().unwrap();
});
api.prevent_close();
- } else {
- // Exit app completely when hide_on_close is false
- std::process::exit(0);
}
+ // If hide_on_close is false, allow normal close behavior
+ // This lets tauri-plugin-window-state save the window position and size
}
})
.build(tauri::generate_context!())