diff options
author | Aylur <[email protected]> | 2024-08-08 23:58:01 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-08-08 23:58:10 +0200 |
commit | ce866f7b0af13511cf6ab95998b252cb9b7c93aa (patch) | |
tree | 49432f9bec2c2756f5fc8d65010779d9548f0c2f | |
parent | 14d2615cd0ffe651f479ffeb22815b92eb455a34 (diff) |
fix: notify device properties
-rw-r--r-- | src/device.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/device.vala b/src/device.vala index fbcdd1e..8fe086f 100644 --- a/src/device.vala +++ b/src/device.vala @@ -35,7 +35,10 @@ public class Device : Object { proxy.g_properties_changed.connect((props) => { var map = (HashTable<string, Variant>)props; foreach (var key in map.get_keys()) { - notify_property(kebab_case(key)); + var prop = kebab_case(key); + if (get_class().find_property(prop) != null) { + notify_property(prop); + } } }); } |