From 2714071b1645b56a71a6f0708e8be6fb4dc74878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=94=E5=8D=81=E5=B5=90=20=E6=B6=BC?= Date: Wed, 16 Oct 2024 20:06:33 +0900 Subject: [PATCH] UI Fix: Make search button available after device list becomes empty --- blueman/gui/manager/ManagerToolbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]