report group

This commit is contained in:
atse 2024-08-29 11:47:39 +08:00
parent 9787dc1e8b
commit cd38a1c303

View File

@ -139,10 +139,10 @@ class MainWindow(QtWidgets.QMainWindow):
@asyncSlot(ThermostatConnectionState) @asyncSlot(ThermostatConnectionState)
async def _on_connection_changed(self, state): async def _on_connection_changed(self, state):
self.graph_group.setEnabled(state == ThermostatConnectionState.CONNECTED) self.graph_group.setEnabled(state == ThermostatConnectionState.CONNECTED)
self.report_group.setEnabled(state == ThermostatConnectionState.CONNECTED)
self.thermostat_settings.setEnabled( self.thermostat_settings.setEnabled(
state == ThermostatConnectionState.CONNECTED state == ThermostatConnectionState.CONNECTED
) )
self.report_group.setEnabled(state == ThermostatConnectionState.CONNECTED)
match state: match state:
case ThermostatConnectionState.CONNECTED: case ThermostatConnectionState.CONNECTED: