소스 검색

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()
         }
     }