fix(connectivity): simplify toolbar progress

This commit is contained in:
Qiu Yuzhou
2026-10-14 01:09:41 +08:00
parent 8098bf4a08
commit a5206c78ff
@@ -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)
}
}
}