bl new design
This commit is contained in:
parent
b56a1aed14
commit
2b6d0172df
@ -226,7 +226,7 @@ class BluetoothScreen(QWidget):
|
|||||||
if not success:
|
if not success:
|
||||||
self.status.setText(f"Статус: ошибка ({self._bt_service.last_error})")
|
self.status.setText(f"Статус: ошибка ({self._bt_service.last_error})")
|
||||||
self._settings.setValue("bluetooth/last_mac", mac)
|
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):
|
def _disconnect_device(self, mac: str):
|
||||||
"""Отключить устройство по MAC."""
|
"""Отключить устройство по MAC."""
|
||||||
@ -237,7 +237,7 @@ class BluetoothScreen(QWidget):
|
|||||||
self.status.setText(f"Статус: ошибка ({self._bt_service.last_error})")
|
self.status.setText(f"Статус: ошибка ({self._bt_service.last_error})")
|
||||||
else:
|
else:
|
||||||
self.status.setText(f"Статус: отключено от {mac}")
|
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):
|
def _remove_device(self, mac: str):
|
||||||
"""Удалить устройство из списка сопряженных."""
|
"""Удалить устройство из списка сопряженных."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user