D25951: Show peripheral low battery notification for NoCharge

Kai Uwe Broulik noreply at phabricator.kde.org
Fri Dec 13 13:51:53 GMT 2019


broulik created this revision.
broulik added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.

REVISION SUMMARY
  BlueZ doesn't report charge state, only percentage, so it is unfortunately always `NoCharge` for them.
  Add an additional guard to check for "0%" charge explicitly just in case.

TEST PLAN
  - Got a notificaton about my headphones running low

REPOSITORY
  R122 Powerdevil

REVISION DETAIL
  https://phabricator.kde.org/D25951

AFFECTED FILES
  daemon/powerdevilcore.cpp

To: broulik, #plasma
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191213/5d2bdf91/attachment-0001.html>


More information about the Plasma-devel mailing list