From db127f788b58c79c05118aaf32c9ae1a73d313fc Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 28 Aug 2024 10:55:58 +0800 Subject: [PATCH] fixup! Refactor repeated stuff --- pytec/tec_qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: