From 7304e3dd96f0bae4d63ccf3d4fa4f176b760a81f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 14 Sep 2026 19:31:00 +0200 Subject: 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. --- AGENTS.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index facbdfd..e3db205 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -174,6 +174,13 @@ changing that component. The ones that generalise: - **`qdbus` resolves a bare `org.kde.kdeconnect.device.` as either a property or a method**, so `name`, `isReachable` and the `verificationKey()` method all use the same call shape. +- **A component property named the same as the enclosing object's `id` binds to + itself.** `KdeConnectModule` is `id: mod` and used to inject `KdeConnectTile { + mod: mod }`; in a `Component` scope that resolves to the tile's own unset + property, so `mod` arrived undefined and the page rendered no devices, with + only a runtime `TypeError` in the log and a clean smoke check (the drawer was + closed, so nothing was instantiated). Inject an id under a different name: + `net`, `bt`, `kc`. ## Theme -- cgit v1.2.3