forked from M-Labs/thermostat
Set client to none if failed to connect
Fixes connect button behaviour after accidental disconnect
This commit is contained in:
parent
84018c3ebc
commit
1849711c62
@ -179,6 +179,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
logging.error(f"Failed communicating to the {ip}:{port}: {e}")
|
||||
self._on_connection_changed(False)
|
||||
self.connect_btn.setEnabled(True)
|
||||
self.tec_client = None
|
||||
|
||||
|
||||
async def coro_main():
|
||||
|
Loading…
Reference in New Issue
Block a user