diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index a036aaf..7803a2f 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -139,10 +139,10 @@ class MainWindow(QtWidgets.QMainWindow): state == ThermostatConnectionState.CONNECTED ) self.conn_menu.host_set_line.setEnabled( - state != ThermostatConnectionState.DISCONNECTED + state == ThermostatConnectionState.DISCONNECTED ) self.conn_menu.port_set_spin.setEnabled( - state != ThermostatConnectionState.DISCONNECTED + state == ThermostatConnectionState.DISCONNECTED ) match state: