From a5206c78ffb2a14ca111d852e067b956fb7e1e99 Mon Sep 17 00:00:00 2001 From: Qiu Yuzhou Date: Wed, 14 Oct 2026 01:09:41 +0800 Subject: [PATCH] fix(connectivity): simplify toolbar progress --- .../App/UI/Servers/ConnectivityViews.swift | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ShadowsocksX-NG2/App/UI/Servers/ConnectivityViews.swift b/ShadowsocksX-NG2/App/UI/Servers/ConnectivityViews.swift index 80cd0341..ea7e4b8f 100644 --- a/ShadowsocksX-NG2/App/UI/Servers/ConnectivityViews.swift +++ b/ShadowsocksX-NG2/App/UI/Servers/ConnectivityViews.swift @@ -66,14 +66,8 @@ struct ConnectivityBatchButton: View { Label(ConnectivityCopy.text("测试全部"), systemImage: "waveform.path.ecg") } .disabled(targets.isEmpty) - if let batchID, let batch = module.batch(batchID) { - if batch.completed < batch.targets.count { ProgressView().controlSize(.mini) } - Text("\(batch.completed)/\(batch.targets.count)") - .monospacedDigit() - if !batch.cooling.isEmpty { - Text(ConnectivityCopy.text("已跳过冷却中的服务器") + " (\(batch.cooling.count))") - .foregroundStyle(.secondary) - } + if let batchID, let batch = module.batch(batchID), batch.completed < batch.targets.count { + ProgressView().controlSize(.mini) } } }