diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index a044b81..8f82881 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -98,16 +98,16 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self.menu = QtWidgets.QMenu() self.menu.setTitle('Thermostat settings') - fan = QtWidgets.QWidgetAction(self.menu) - fan.setDefaultWidget(self.fan_group) - self.menu.addAction(fan) - self.menu.fan = fan - port = QtWidgets.QWidgetAction(self.menu) port.setDefaultWidget(self.port_set_spin) self.menu.addAction(port) self.menu.port = port + fan = QtWidgets.QWidgetAction(self.menu) + fan.setDefaultWidget(self.fan_group) + self.menu.addAction(fan) + self.menu.fan = fan + self.thermostat_settings.setMenu(self.menu) async def _on_connection_changed(self, result):