Skip to content

Commit

Permalink
ui: update codename when device status changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Sep 19, 2023
1 parent 5d6d675 commit 09773bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/solaar/ui/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,8 @@ def update_device(device, item, selected_device_id, need_popup, full=False):
icon_name = _icons.battery(battery_level, charging)
_model.set_value(item, _COLUMN.STATUS_ICON, icon_name)

_model.set_value(item, _COLUMN.NAME, device.codename)

if selected_device_id is None or need_popup:
select(device.receiver.path if device.receiver else device.path, device.number)
elif selected_device_id == (device.receiver.path if device.receiver else device.path, device.number):
Expand Down

0 comments on commit 09773bc

Please sign in to comment.