浏览代码

added condition to button icon

Malte Veerman 10 年之前
父节点
当前提交
80a9d805b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/contents/ui/KCM.qml

+ 1 - 1
package/contents/ui/KCM.qml

@@ -51,7 +51,7 @@ Item {
         Button {
             Layout.alignment: Qt.AlignCenter
             text: i18n("Detect fans")
-            iconName: "dialog-password"
+            iconName: kcm.needsAuthorization ? "dialog-password" : ""
             onClicked: kcm.loader.detectSensors()
         }
     }