From cd38a1c3031a20735cd23e3d212b336c808ccb4f Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 29 Aug 2024 11:47:39 +0800 Subject: [PATCH] report group --- pytec/tec_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index a0baf79..a96925d 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -139,10 +139,10 @@ class MainWindow(QtWidgets.QMainWindow): @asyncSlot(ThermostatConnectionState) async def _on_connection_changed(self, state): self.graph_group.setEnabled(state == ThermostatConnectionState.CONNECTED) - self.report_group.setEnabled(state == ThermostatConnectionState.CONNECTED) self.thermostat_settings.setEnabled( state == ThermostatConnectionState.CONNECTED ) + self.report_group.setEnabled(state == ThermostatConnectionState.CONNECTED) match state: case ThermostatConnectionState.CONNECTED: