Use receiver application statusText instead of host:port when not idle

This commit is contained in:
hensm
2019-08-04 11:01:20 +01:00
parent 0fa1f63576
commit 8ac3cf49f5
5 changed files with 27 additions and 6 deletions

View File

@@ -37,9 +37,13 @@ class ReceiverView : NSStackView {
self.receiver = receiver
let statusText = receiver.status.application.isIdleScreen
? "\(receiver.host):\(receiver.port)"
: receiver.status.application.statusText
let metaStackView = NSStackView(views: [
makeLabel(receiver.friendlyName, size: 14)
, makeLabel("\(receiver.host):\(receiver.port)"
, makeLabel(statusText
, size: NSFont.smallSystemFontSize
, color: .secondaryLabelColor)
])