Skip to content

Commit

Permalink
Merge pull request #65 from greenhat616/fix-issues
Browse files Browse the repository at this point in the history
fix: issues
  • Loading branch information
keiko233 authored Dec 8, 2023
2 parents 0946b3c + 3a449d3 commit af2874a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
Binary file modified backend/tauri/icons/win-tray-icon-activated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified backend/tauri/icons/win-tray-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion backend/tauri/src/core/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions backend/tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
_ => {}
Expand Down
2 changes: 1 addition & 1 deletion backend/tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"tauri": {
"systemTray": {
"iconPath": "icons/tray-icon.ico",
"iconPath": "icons/win-tray-icon.png",
"iconAsTemplate": true
},
"bundle": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit af2874a

Please sign in to comment.