From b9f1874fccecbbeab0588f7f87f2d92fd38433ad Mon Sep 17 00:00:00 2001 From: AkiChase <1003019131@qq.com> Date: Tue, 7 May 2024 15:24:34 +0800 Subject: [PATCH] feat(Cargo): update dependencies --- src-tauri/Cargo.toml | 10 +++++----- src-tauri/src/main.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1954b9f..60bc773 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -11,12 +11,12 @@ edition = "2021" tauri-build = { version = "2.0.0-beta", features = [] } [dependencies] -tauri = { version = "2.0.0-beta.15", features = ["macos-private-api", "devtools"] } -tauri-plugin-store = "2.0.0-beta.4" +tauri = { version = "2.0.0-beta.18", features = ["macos-private-api", "devtools"] } +tauri-plugin-store = "2.0.0-beta" serde = { version = "1", features = ["derive"] } serde_json = "1" anyhow = "1.0" tokio = { version = "1.36.0", features = ["rt-multi-thread", "net", "macros", "io-util", "time", "sync"] } -tauri-plugin-process = "2.0.0-beta.3" -tauri-plugin-shell = "2.0.0-beta.4" -tauri-plugin-http = "2.0.0-beta.7" +tauri-plugin-process = "2.0.0-beta" +tauri-plugin-shell = "2.0.0-beta" +tauri-plugin-http = "2.0.0-beta" diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index da39b6f..b31b9ae 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -161,7 +161,7 @@ async fn main() { let size_h = value["sizeH"].as_i64().unwrap_or(600); let main_window: tauri::WebviewWindow = app.get_webview_window("main").unwrap(); - main_window.set_zoom(1.).unwrap(); + main_window.set_zoom(1.).unwrap_or(()); main_window .set_position(tauri::Position::Logical(tauri::LogicalPosition { x: (pos_x - 70) as f64,