Fix: Custom tray icon not working

1. Contains potential deadlock
This commit is contained in:
huzibaca
2024-09-20 16:26:23 +08:00
parent ab887c656a
commit c246ae3bcf
6 changed files with 19 additions and 18 deletions

View File

@@ -244,13 +244,10 @@ pub async fn patch_verge(patch: IVerge) -> Result<()> {
|| common_tray_icon.is_some()
|| sysproxy_tray_icon.is_some()
|| tun_tray_icon.is_some()
|| tray_icon.is_some()
{
handle::Handle::update_systray_part()?;
}
#[cfg(target_os = "macos")]
if tray_icon.is_some() {
handle::Handle::update_systray_part()?;
}
<Result<()>>::Ok(())
};