From 7aa340b0b44238b79c2a16eb1928c5e7707498da 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: