Skip to content

Commit

Permalink
UI Fix: Make search button available after device list becomes empty
Browse files Browse the repository at this point in the history
  • Loading branch information
astcri authored and cschramm committed Oct 17, 2024
1 parent 9d21c61 commit 2714071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueman/gui/manager/ManagerToolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def on_device_selected(
device: Optional[Device],
_tree_iter: Gtk.TreeIter,
) -> None:
self._update_buttons(None if device is None else Adapter(obj_path=device["Adapter"]))
self._update_buttons(dev_list.Adapter)

def _update_buttons(self, adapter: Optional[Adapter]) -> None:
powered = adapter is not None and adapter["Powered"]
Expand Down

0 comments on commit 2714071

Please sign in to comment.