mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:43:44 +08:00
chore: update
This commit is contained in:
parent
0792ac7de8
commit
f9f1721d66
@ -56,15 +56,6 @@ impl Handle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_systray() -> Result<()> {
|
|
||||||
let app_handle = Self::global().app_handle.lock().clone();
|
|
||||||
if app_handle.is_none() {
|
|
||||||
bail!("update_systray unhandled error");
|
|
||||||
}
|
|
||||||
Tray::update_systray(app_handle.as_ref().unwrap())?;
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
/// update the system tray state
|
/// update the system tray state
|
||||||
pub fn update_systray_part() -> Result<()> {
|
pub fn update_systray_part() -> Result<()> {
|
||||||
let app_handle = Self::global().app_handle.lock().clone();
|
let app_handle = Self::global().app_handle.lock().clone();
|
||||||
|
@ -239,9 +239,8 @@ pub async fn patch_verge(patch: IVerge) -> Result<()> {
|
|||||||
hotkey::Hotkey::global().update(hotkeys)?;
|
hotkey::Hotkey::global().update(hotkeys)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if language.is_some() {
|
if language.is_some()
|
||||||
handle::Handle::update_systray()?;
|
|| system_proxy.is_some()
|
||||||
} else if system_proxy.is_some()
|
|
||||||
|| tun_mode.is_some()
|
|| tun_mode.is_some()
|
||||||
|| common_tray_icon.is_some()
|
|| common_tray_icon.is_some()
|
||||||
|| sysproxy_tray_icon.is_some()
|
|| sysproxy_tray_icon.is_some()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user