refactor: mihomo ipc (#7601)

* refactor: mihomo ipc request

* refactor: remove redundant write locks and await on mihomo handle

* fix(rule): handle non-string types in ProviderButton labels

* refactor: handle non-string value types in RuleItem component

* refactor(tauri): remove unnecessary await in get_base_config call

* chore: update tauri-plugin-mihomo deps

* refactor: rename ConnectionId to WsConnectionId

* chore: update tauri-plugin-mihomo-api dependency reference

* chore(config): use Proxy::default in profile test initialization
This commit is contained in:
oomeow
2026-07-28 15:16:01 +00:00
committed by GitHub
parent 3515c79e2b
commit b71a1e4ec5
24 changed files with 68 additions and 134 deletions
+1 -2
View File
@@ -41,9 +41,8 @@ pub async fn get_proxy_view() -> CmdResult<ProxyViewV1> {
let latest_runtime = runtime.latest_arc();
let runtime_group_order = runtime_group_order(latest_runtime.config.as_ref());
let mihomo = Handle::mihomo().await;
let mihomo = Handle::mihomo();
let (proxies, providers) = tokio::join!(mihomo.get_proxies(), mihomo.get_proxy_providers(),);
drop(mihomo);
let proxies = proxies.stringify_err()?;
Ok(ProxyViewBuilder::build(ProxyViewInput {