ConnectionBtn + StatusLbl

This commit is contained in:
atse 2024-08-28 10:50:48 +08:00
parent f75348c69d
commit 342f7c6655

View File

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