chore: update

This commit is contained in:
huzibaca
2024-09-22 15:39:52 +08:00
parent 56983c4d2a
commit a5c871e933
2 changed files with 2 additions and 12 deletions

View File

@@ -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
pub fn update_systray_part() -> Result<()> {
let app_handle = Self::global().app_handle.lock().clone();