chore: update

This commit is contained in:
huzibaca 2024-11-27 07:09:03 +08:00
parent 7df5ca1912
commit 373c8ec0e5
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -162,11 +162,15 @@ pub fn create_window() {
.unwrap(); .unwrap();
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
let window = builder let window = tauri::WebviewWindowBuilder::new(
.decorations(false) &app_handle,
.transparent(true) "main".to_string(),
.build() tauri::WebviewUrl::App("index.html".into()),
.unwrap(); )
.decorations(false)
.transparent(true)
.build()
.unwrap();
match window.restore_state(StateFlags::all()) { match window.restore_state(StateFlags::all()) {
Ok(_) => { Ok(_) => {