Skip to content
Commit 7e2c1f0d authored by Stefan Brüns's avatar Stefan Brüns
Browse files

Avoid cache bypass of `UPowerDevice::allProperties`

The `allProperties()` method always does a synchronous DBus call,
without checking the cache. The method is e.g. used by the
GenericDevice interface to retrieve the properties.

Split the `GetAll` properties call from allProperties, so it can be used
by both `allProperties` and `checkCache` to prime an empty cache.

This also improves the behavior in case the cache was partially populated
by the propertiesChanged signal, now the missing properties are fetched
in bulk instead of individually.
parent 1ec76662
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment