Move fan signal connection into menu setup

This commit is contained in:
atse 2023-07-31 16:21:15 +08:00
parent 0443778456
commit 26fdc951bc
1 changed files with 3 additions and 3 deletions

View File

@ -150,9 +150,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self._set_up_thermostat_menu() self._set_up_thermostat_menu()
self._set_up_plot_menu() self._set_up_plot_menu()
self.fan_power_slider.valueChanged.connect(self.fan_set)
self.fan_auto_box.stateChanged.connect(self.fan_auto_set)
self._set_param_tree() self._set_param_tree()
self.ch0_t_plot = LiveLinePlot() self.ch0_t_plot = LiveLinePlot()
@ -300,6 +297,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.gan_layout.addWidget(self.fan_pwm_warning) self.gan_layout.addWidget(self.fan_pwm_warning)
self.horizontalLayout_6.addLayout(self.gan_layout) self.horizontalLayout_6.addLayout(self.gan_layout)
self.fan_power_slider.valueChanged.connect(self.fan_set)
self.fan_auto_box.stateChanged.connect(self.fan_auto_set)
self.fan_lbl.setToolTip(_translate("MainWindow", "Adjust the fan")) self.fan_lbl.setToolTip(_translate("MainWindow", "Adjust the fan"))
self.fan_lbl.setText(_translate("MainWindow", "Fan:")) self.fan_lbl.setText(_translate("MainWindow", "Fan:"))
self.fan_auto_box.setText(_translate("MainWindow", "Auto")) self.fan_auto_box.setText(_translate("MainWindow", "Auto"))