[Kde-hardware-devel] Review Request: Show Battery Low notification on startup along with Broken Battery notifications so it doesn't appear before workspace is up

Kai Uwe Broulik kde at privat.broulik.de
Wed Nov 28 14:49:37 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107505/
-----------------------------------------------------------

Review request for Solid.


Description
-------

I made PowerDevil show the battery low and critical notifications directly on startup so you cannot miss them. However, I complained about that DPMS profile warning and then added another notification that appears right on startup :P
Because of the nature of the notifications which are emitted in the onDeviceAdded part, it is emitted when PowerDevil comes up, leading to a similar ugly notification. This patch suppresses any notifications from onDeviceAdded until the checkBatteryStatus slot is fired, and then emits the notifications as needed.

CCBUG: 261890


Diffs
-----

  powerdevil/daemon/powerdevilcore.h 77c3f2f 
  powerdevil/daemon/powerdevilcore.cpp 2dcdbc6 

Diff: http://git.reviewboard.kde.org/r/107505/diff/


Testing
-------

Tested with AC unplugged, logged in, no notification, after 30 seconds in the workspace, I got a notification saying my battery is low.


Thanks,

Kai Uwe Broulik

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20121128/90dcdef0/attachment.html>


More information about the Kde-hardware-devel mailing list