mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-03 09:33:46 +00:00
fix(connectivity): simplify toolbar progress
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user