tools: Network Quality and STUN
This commit is contained in:
@@ -41,13 +41,7 @@ public class GroupListViewModel: BaseViewModel {
|
||||
var items = [OutboundGroupItem]()
|
||||
let itemIterator = goGroup.getItems()!
|
||||
while itemIterator.hasNext() {
|
||||
let goItem = itemIterator.next()!
|
||||
items.append(OutboundGroupItem(
|
||||
tag: goItem.tag,
|
||||
type: goItem.type,
|
||||
urlTestTime: Date(timeIntervalSince1970: Double(goItem.urlTestTime)),
|
||||
urlTestDelay: UInt16(goItem.urlTestDelay)
|
||||
))
|
||||
items.append(OutboundGroupItem(itemIterator.next()!))
|
||||
}
|
||||
|
||||
var selected = goGroup.selected
|
||||
|
||||
@@ -18,7 +18,7 @@ public struct GroupView: View {
|
||||
Text(group.displayType)
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.secondary)
|
||||
Text("\(group.items.count)")
|
||||
Text(verbatim: "\(group.items.count)")
|
||||
.font(.subheadline)
|
||||
.padding(EdgeInsets(top: 2, leading: 4, bottom: 2, trailing: 4))
|
||||
.background(Color.gray.opacity(0.5))
|
||||
|
||||
Reference in New Issue
Block a user