quicksettings: Fix enabled text always displaying "On"

This commit is contained in:
Devin Lin 2022-05-20 09:59:58 -04:00
parent 76a92aee1b
commit 3e22b962f2

View file

@ -78,7 +78,7 @@ QuickSettingsDelegate {
Components.MarqueeLabel {
// if no status is given, just use On/Off
inputText: status ? status : (enabled ? i18n("On") : i18n("Off"))
inputText: root.status ? root.status : (root.enabled ? i18n("On") : i18n("Off"))
opacity: 0.6
Layout.fillWidth: true