feat: added public IP address to the network portal view (#1842)

This commit is contained in:
Serhiy Mytrovtsiy
2024-03-20 19:26:48 +01:00
parent 3250b9b6b2
commit 6482a43dea
3 changed files with 56 additions and 37 deletions

View File

@@ -350,7 +350,7 @@ public func popupRow(_ view: NSView, n: CGFloat = 0, title: String, value: Strin
return (labelView, valueView)
}
public func portalRow(_ v: NSStackView, title: String) -> ValueField {
public func portalRow(_ v: NSStackView, title: String, value: String = "") -> ValueField {
let view: NSStackView = NSStackView()
view.orientation = .horizontal
view.distribution = .fillProportionally
@@ -359,7 +359,7 @@ public func portalRow(_ v: NSStackView, title: String) -> ValueField {
let labelView: LabelField = LabelField(title)
labelView.font = NSFont.systemFont(ofSize: 11, weight: .regular)
let valueView: ValueField = ValueField()
let valueView: ValueField = ValueField(value)
valueView.font = NSFont.systemFont(ofSize: 12, weight: .regular)
view.addArrangedSubview(labelView)