Set client to none if failed to connect

Fixes connect button behaviour after accidental disconnect
This commit is contained in:
atse 2023-07-07 16:32:16 +08:00
parent 84018c3ebc
commit 1849711c62
1 changed files with 1 additions and 0 deletions

View File

@ -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():