aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/kdeconnect/KdeConnectTile.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-14 19:31:00 +0200
committerDanilo M. <danix@danix.xyz>2026-09-14 19:31:00 +0200
commit7304e3dd96f0bae4d63ccf3d4fa4f176b760a81f (patch)
treee4094588b4122f7443a0c1a8f3724619fee994a9 /desktop/modules/kdeconnect/KdeConnectTile.qml
parent32f88e68dfa9489ef09408b3dd34180b76357750 (diff)
downloadquickshell-7304e3dd96f0bae4d63ccf3d4fa4f176b760a81f.tar.gz
quickshell-7304e3dd96f0bae4d63ccf3d4fa4f176b760a81f.zip
fix(desktop): name the kdeconnect injected property kc, not mod
The tile, page and row each took a required property named mod while the module object's id is also mod. In a Component scope the id resolves to the property's own unset self, so every page.mod read was undefined and the device list never rendered. Only a runtime TypeError showed it; the smoke check was clean because the drawer was closed. kc matches the net and bt convention and cannot collide with the id.
Diffstat (limited to 'desktop/modules/kdeconnect/KdeConnectTile.qml')
-rw-r--r--desktop/modules/kdeconnect/KdeConnectTile.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/modules/kdeconnect/KdeConnectTile.qml b/desktop/modules/kdeconnect/KdeConnectTile.qml
index ae74fbc..fa7fc3b 100644
--- a/desktop/modules/kdeconnect/KdeConnectTile.qml
+++ b/desktop/modules/kdeconnect/KdeConnectTile.qml
@@ -19,26 +19,26 @@ import "../.."
Item {
id: tile
- required property var mod
+ required property var kc
width: parent ? parent.width : implicitWidth
implicitHeight: state.implicitHeight
- Component.onCompleted: mod.polling = true
- Component.onDestruction: mod.polling = false
+ Component.onCompleted: kc.polling = true
+ Component.onDestruction: kc.polling = false
Text {
id: state
width: parent.width
elide: Text.ElideRight
font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 4 }
- color: tile.mod.anyReachable ? Theme.text : Theme.subtext
+ color: tile.kc.anyReachable ? Theme.text : Theme.subtext
text: {
- const r = tile.mod.reachable;
+ const r = tile.kc.reachable;
if (r.length === 1)
return r[0].charge !== "" ? r[0].name + " " + r[0].charge + "%" : r[0].name;
if (r.length > 1) return r.length + " connected";
- if (tile.mod.paired.length > 0) return "Offline";
+ if (tile.kc.paired.length > 0) return "Offline";
return "No devices";
}
}