fix: tray tooltip not updating

This commit is contained in:
huzibaca
2025-01-13 13:01:12 +08:00
parent f2cc116ff9
commit 5bff7ea469
2 changed files with 8 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ use crate::{
feat,
utils::{dirs, help},
};
use crate::{ret_err, wrap_err};
use crate::{log_err, ret_err, wrap_err};
use anyhow::{Context, Result};
use network_interface::NetworkInterface;
use serde_yaml::Mapping;
@@ -28,6 +28,7 @@ pub fn get_profiles() -> CmdResult<IProfiles> {
#[tauri::command]
pub async fn enhance_profiles() -> CmdResult {
wrap_err!(CoreManager::global().update_config().await)?;
log_err!(tray::Tray::global().update_tooltip());
handle::Handle::refresh_clash();
Ok(())
}