Skip to content

daemon: Consider pending-charge when calculating the display state

Without this change if there is only one battery in the system in a pending-charge state, the display device state is set to unknown, and its icon to battery-missing-symbolic.

This change takes the pending-charge state into consideration, and sets the display device's state to pending-charge if at least one battery in the system is in the pending-charge state and all others are either on pending-charge or fully-charged.

Closes: #81 (closed)

Merge request reports