forked from M-Labs/thermostat
fixup! Refactor repeated stuff
This commit is contained in:
parent
863106d835
commit
db127f788b
@ -139,10 +139,10 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
state == ThermostatConnectionState.CONNECTED
|
state == ThermostatConnectionState.CONNECTED
|
||||||
)
|
)
|
||||||
self.conn_menu.host_set_line.setEnabled(
|
self.conn_menu.host_set_line.setEnabled(
|
||||||
state != ThermostatConnectionState.DISCONNECTED
|
state == ThermostatConnectionState.DISCONNECTED
|
||||||
)
|
)
|
||||||
self.conn_menu.port_set_spin.setEnabled(
|
self.conn_menu.port_set_spin.setEnabled(
|
||||||
state != ThermostatConnectionState.DISCONNECTED
|
state == ThermostatConnectionState.DISCONNECTED
|
||||||
)
|
)
|
||||||
|
|
||||||
match state:
|
match state:
|
||||||
|
Loading…
Reference in New Issue
Block a user