浏览代码

Added missing Connections to minStartSpinBox

Malte Veerman 7 年之前
父节点
当前提交
44b7e07321
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      import/qml/FanItem.qml

+ 9 - 0
import/qml/FanItem.qml

@@ -454,6 +454,15 @@ Rectangle {
                         fan.minStart = Math.round(value * 2.55)
                     }
                 }
+
+                Connections {
+                    target: root
+                    onFanChanged: if (!!fan) minStartInput.value = fan.minStart / 2.55
+                }
+                Connections {
+                    target: fan
+                    onMinPwmChanged: minStartInput.value = fan.minStart / 2.55
+                }
             }
         }