From cbdbdf2c637694c7db73819fc59e5e3b38e331cb Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 11 Jan 2025 22:08:31 +0545 Subject: [PATCH] fix bluetooth manager --- .../quickbar/modules/launcher/widgets/bluetooth.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/config/quickbar/modules/launcher/widgets/bluetooth.py b/config/quickbar/modules/launcher/widgets/bluetooth.py index 8f997cb5..60a27921 100644 --- a/config/quickbar/modules/launcher/widgets/bluetooth.py +++ b/config/quickbar/modules/launcher/widgets/bluetooth.py @@ -98,17 +98,16 @@ class BluetoothManager(Box): self.is_active = False if self.viewport: self.viewport.children = [] - # self.launcher_box.remove(self.scrolled_window) - # self.viewport = None self.stop_device_polling() GLib.spawn_command_line_async("fabric-cli exec quickbar 'launcher.close()'") - def handle_search_input(self, text: str): - if text.lower() == ":bt": - self.open_launcher() - else: - self.device_manager.arrange_viewport(text) + def handle_search_input(self, entry, text: str): + if isinstance(text, str): + if text.lower() == ":bt": + self.open_launcher() + else: + self.device_manager.arrange_viewport(text) def start_device_polling(self): if not self.polling_handler and self.is_active: