https://bugs.kde.org/show_bug.cgi?id=518513

--- Comment #3 from [email protected] ---
Git commit 25fdba2b693a5948c204fc4805df09ce0fb2323b by Matthias Kurz.
Committed on 20/08/2026 at 18:19.
Pushed by ngraham into branch 'master'.

Show unknown battery percentages correctly

Solid represents an unavailable charge percentage as a negative value. Display
Unknown in the detailed view, omit its progress bar and compact badge, and use
the missing-battery icon instead of treating it as 0%. For peripherals,
suppress a misleading Discharging state when the percentage is unknown while
retaining a known Charging state.

Handle the same state in the tooltip and add QML coverage for known, unknown,
charging, and discharging combinations.

M  +4    -0    CMakeLists.txt
M  +17   -6    applets/batterymonitor/BatteryItem.qml
M  +6    -4    applets/batterymonitor/CompactRepresentation.qml
M  +4    -0    applets/batterymonitor/main.qml
M  +11   -0    autotests/CMakeLists.txt
A  +9    -0    autotests/batteryitemtest.cpp     [License: GPL(v2.0+)]
A  +85   -0    autotests/tst_batteryitem.qml     [License: LGPL(v2.0+)]

https://invent.kde.org/plasma/powerdevil/-/commit/25fdba2b693a5948c204fc4805df09ce0fb2323b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to