fix: optimize process ID collection and remove unnecessary async handler in window destruction

fix: remove unnecessary condition check in process name matching
This commit is contained in:
Tunglies
2025-10-21 22:59:59 +08:00
parent a8b17926ed
commit d9fdf261d1
2 changed files with 4 additions and 13 deletions

View File

@@ -339,13 +339,6 @@ pub fn run() {
}
pub fn handle_window_destroyed() {
AsyncHandler::spawn(|| async {
let _ = handle::Handle::mihomo()
.await
.clear_all_ws_connections()
.await;
});
#[cfg(target_os = "macos")]
{
use crate::core::hotkey::SystemHotkey;