summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/device.vala5
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);
+ }
}
});
}