mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-03 15:58:01 +02:00
daemon: Set the display device type when on battery
When on battery only, we weren't setting the display device type properly.
This commit is contained in:
parent
f15992c6a3
commit
e7eed719f2
1 changed files with 1 additions and 0 deletions
|
|
@ -258,6 +258,7 @@ up_daemon_update_display_battery (UpDaemon *daemon)
|
|||
state_total = UP_DEVICE_STATE_FULLY_CHARGED;
|
||||
|
||||
/* sum up composite */
|
||||
kind_total = UP_DEVICE_KIND_BATTERY;
|
||||
energy_total += energy;
|
||||
energy_full_total += energy_full;
|
||||
energy_rate_total += energy_rate;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue