mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Use receiver application statusText instead of host:port when not idle
This commit is contained in:
@@ -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)
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user