diff --git a/blueman/gui/manager/ManagerToolbar.py b/blueman/gui/manager/ManagerToolbar.py index 3e433dc7f..2ec6dd99c 100644 --- a/blueman/gui/manager/ManagerToolbar.py +++ b/blueman/gui/manager/ManagerToolbar.py @@ -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"]