Update fan slider value immediately after fan auto

This commit is contained in:
atse 2023-07-11 12:28:20 +08:00
parent 5e105884d1
commit 3d801666fa
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.fan_power_slider.setEnabled(not enabled) self.fan_power_slider.setEnabled(not enabled)
if enabled: if enabled:
await self.tec_client.set_param("fan", "auto") await self.tec_client.set_param("fan", "auto")
self.fan_update(await self.tec_client.fan())
else: else:
await self.tec_client.set_param("fan", self.fan_power_slider.value()) await self.tec_client.set_param("fan", self.fan_power_slider.value())