mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user