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

Fabian Vogt <fab...@ritter-vogt.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/powerdevil/commit/e0a74c |ma/powerdevil/commit/b2e33b
                   |c3bd358abeb64b9a3857c00c1d7 |eeed1a7ba60fb20a784c3209f97
                   |1802553                     |b887b8f

--- Comment #12 from Fabian Vogt <fab...@ritter-vogt.de> ---
Git commit b2e33beeed1a7ba60fb20a784c3209f97b887b8f by Fabian Vogt.
Committed on 26/01/2023 at 13:50.
Pushed by fvogt into branch 'Plasma/5.27'.

chargethresholdhelper: Filter out batteries without thresholds early

Previously, getBatteries() returned all batteries, even those without support
for thresholds. While getthreshold simply skipped those where reading
fails, setthreshold exited early on the first failure, leaving the remaining
batteries untouched.

By already performing filtering in getBatteries(), this should now behave more
consistently and work also if not all batteries support thresholds.


(cherry picked from commit e0a74cc3bd358abeb64b9a3857c00c1d71802553)

M  +14   -3    daemon/chargethresholdhelper.cpp

https://invent.kde.org/plasma/powerdevil/commit/b2e33beeed1a7ba60fb20a784c3209f97b887b8f

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

Reply via email to