From e0f159f2552ea3b5301c354e43ca4ba426772e28 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sun, 9 Apr 2023 08:17:26 +0800 Subject: [PATCH] :bug: restore state set decorations --- src-tauri/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index e88c395..bdf51a5 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -51,6 +51,7 @@ pub fn run_app() { let _window = get_window(app, pake_config, data_dir); // Prevent initial shaking _window.restore_state(StateFlags::all()).unwrap(); + _window.set_decorations(true).unwrap(); _window.show().unwrap(); Ok(()) })