ConnectionBtn + StatusLbl

This commit is contained in:
atse 2024-08-28 10:50:48 +08:00
parent 6d518560df
commit 382e5d916f

View File

@ -146,13 +146,13 @@ class MainWindow(QtWidgets.QMainWindow):
)
case ThermostatConnectionState.CONNECTING:
self.status_lbl.setText("Connecting...")
self.connect_btn.setText("Stop")
self.status_lbl.setText("Connecting...")
case ThermostatConnectionState.DISCONNECTED:
self.connect_btn.setText("Connect")
self.status_lbl.setText("Disconnected")
self.background_task_lbl.setText("Ready.")
self.loading_spinner.hide()
self.loading_spinner.stop()