mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 05:30:03 +01:00
Merge branch 'poll' into 'master'
up-daemon: poll to refresh device when device changed See merge request upower/upower!298
This commit is contained in:
commit
9b227e46f3
1 changed files with 1 additions and 0 deletions
|
|
@ -176,6 +176,7 @@ up_daemon_update_display_battery (UpDaemon *daemon)
|
|||
gboolean charge_threshold_enabled = FALSE;
|
||||
|
||||
device = g_ptr_array_index (array, i);
|
||||
up_device_refresh_internal (device, UP_REFRESH_POLL);
|
||||
g_object_get (device,
|
||||
"is-present", &present,
|
||||
"type", &kind,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue