From 2b6d0172dfb7e0a3c5f57401790a696f869577dc Mon Sep 17 00:00:00 2001 From: cheykrym Date: Wed, 1 Apr 2026 00:37:44 +0300 Subject: [PATCH] bl new design --- screens/setting/bluetooth_screen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screens/setting/bluetooth_screen.py b/screens/setting/bluetooth_screen.py index ced2271..6978764 100644 --- a/screens/setting/bluetooth_screen.py +++ b/screens/setting/bluetooth_screen.py @@ -226,7 +226,7 @@ class BluetoothScreen(QWidget): if not success: self.status.setText(f"Статус: ошибка ({self._bt_service.last_error})") self._settings.setValue("bluetooth/last_mac", mac) - QTimer.singleShot(300, self._update_card_status, mac) + QTimer.singleShot(300, lambda: self._update_card_status(mac)) def _disconnect_device(self, mac: str): """Отключить устройство по MAC.""" @@ -237,7 +237,7 @@ class BluetoothScreen(QWidget): self.status.setText(f"Статус: ошибка ({self._bt_service.last_error})") else: self.status.setText(f"Статус: отключено от {mac}") - QTimer.singleShot(300, self._update_card_status, mac) + QTimer.singleShot(300, lambda: self._update_card_status(mac)) def _remove_device(self, mac: str): """Удалить устройство из списка сопряженных."""