refactor: connect mihomo websocket
This commit is contained in:
@@ -900,7 +900,6 @@ impl CoreManager {
|
||||
logging_error!(Type::Core, true, self.start_core_by_sidecar().await);
|
||||
}
|
||||
};
|
||||
handle::Handle::refresh_websocket();
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -307,14 +307,6 @@ impl Handle {
|
||||
window
|
||||
}
|
||||
|
||||
pub fn refresh_websocket() {
|
||||
if let Some(window) = Self::get_window()
|
||||
&& let Err(e) = window.emit("verge://refresh-websocket", "yes")
|
||||
{
|
||||
log::error!("{e}");
|
||||
}
|
||||
}
|
||||
|
||||
pub fn refresh_clash() {
|
||||
let handle = Self::global();
|
||||
if handle.is_exiting() {
|
||||
|
||||
Reference in New Issue
Block a user