Преглед изворни кода

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