Set fan slider value minimum to 1, not 0

This commit is contained in:
atse 2023-07-11 12:28:44 +08:00
parent fca4b061ee
commit 7e1b64b72c
2 changed files with 4 additions and 0 deletions

View File

@ -573,6 +573,9 @@
<height>0</height>
</size>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>100</number>
</property>

View File

@ -252,6 +252,7 @@ class Ui_MainWindow(object):
self.fan_power_slider.setMinimumSize(QtCore.QSize(200, 0))
self.fan_power_slider.setMaximumSize(QtCore.QSize(200, 16777215))
self.fan_power_slider.setBaseSize(QtCore.QSize(200, 0))
self.fan_power_slider.setMinimum(1)
self.fan_power_slider.setMaximum(100)
self.fan_power_slider.setOrientation(QtCore.Qt.Orientation.Horizontal)
self.fan_power_slider.setObjectName("fan_power_slider")