diff --git a/backend/tauri/icons/win-tray-icon-activated.png b/backend/tauri/icons/win-tray-icon-activated.png index 4938fc438b..fd387e3cda 100644 Binary files a/backend/tauri/icons/win-tray-icon-activated.png and b/backend/tauri/icons/win-tray-icon-activated.png differ diff --git a/backend/tauri/icons/win-tray-icon.png b/backend/tauri/icons/win-tray-icon.png index 590b160b3e..5fb7c27aab 100644 Binary files a/backend/tauri/icons/win-tray-icon.png and b/backend/tauri/icons/win-tray-icon.png differ diff --git a/backend/tauri/src/core/tray.rs b/backend/tauri/src/core/tray.rs index e6bc3078ae..1cc4ae4c94 100644 --- a/backend/tauri/src/core/tray.rs +++ b/backend/tauri/src/core/tray.rs @@ -194,7 +194,7 @@ impl Tray { "restart_clash" => feat::restart_clash_core(), "restart_app" => api::process::restart(&app_handle.env()), "quit" => { - let _ = resolve::save_window_size_position(app_handle, true); + let _ = resolve::save_window_state(app_handle, true); resolve::resolve_reset(); api::process::kill_children(); diff --git a/backend/tauri/src/main.rs b/backend/tauri/src/main.rs index 76a0a8cfbf..3ce984c1fb 100644 --- a/backend/tauri/src/main.rs +++ b/backend/tauri/src/main.rs @@ -132,6 +132,7 @@ fn main() -> std::io::Result<()> { } tauri::WindowEvent::Moved(_) | tauri::WindowEvent::Resized(_) => { // log::info!(target: "app", "window moved or resized"); + std::thread::sleep(std::time::Duration::from_nanos(1)); let _ = resolve::save_window_state(app_handle, false); } _ => {} diff --git a/backend/tauri/tauri.conf.json b/backend/tauri/tauri.conf.json index 7845927d00..8a959bfaf2 100644 --- a/backend/tauri/tauri.conf.json +++ b/backend/tauri/tauri.conf.json @@ -11,7 +11,7 @@ }, "tauri": { "systemTray": { - "iconPath": "icons/tray-icon.ico", + "iconPath": "icons/win-tray-icon.png", "iconAsTemplate": true }, "bundle": { diff --git a/scripts/check.ts b/scripts/check.ts index 81bf34266d..f7f4f4f1cb 100644 --- a/scripts/check.ts +++ b/scripts/check.ts @@ -50,7 +50,7 @@ const CLASH_MAP = { /* ======= clash-rs ======= */ const RS_URL_PREFIX = `https://github.com/Watfaq/clash-rs/releases/download/`; -const RS_VERSION = "v0.1.9"; +const RS_VERSION = "v0.1.10"; const RS_MAP = { "win32-x64": "clash-x86_64-pc-windows-msvc", "darwin-x64": "clash-x86_64-apple-darwin",