Skip to content

Commit

Permalink
ui: device: Show address if name is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhz committed Jul 8, 2023
1 parent 6c9ed59 commit 2271c10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ func setDeviceTableInfo(row int, device bluez.Device) {
var props string

name := device.Name
if name == "" {
name = device.Address
}
name += theme.ColorWrap("DeviceType", " ("+device.Type+")")

nameColor := "Device"
Expand Down

0 comments on commit 2271c10

Please sign in to comment.