Review Request 117533: Fix batterymonitor popup closing when batter full, AC plugged in, and touching brightness slider

Commit Hook null at kde.org
Sun Apr 20 13:47:32 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/117533/#review56085
-----------------------------------------------------------


This review has been submitted with commit 1c9cf5c37483924afd5690e82dcca8456d11c3bc by Kai Uwe Broulik to branch KDE/4.11.

- Commit Hook


On April 13, 2014, 9:27 a.m., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/117533/
> -----------------------------------------------------------
> 
> (Updated April 13, 2014, 9:27 a.m.)
> 
> 
> Review request for Plasma and Christoph Feck.
> 
> 
> Bugs: 321823
>     http://bugs.kde.org/show_bug.cgi?id=321823
> 
> 
> Repository: kde-workspace
> 
> 
> Description
> -------
> 
> This fixes the battery monitor popup closing when the AC is plugged in, all batteries are full, and any of the brightness sliders were touched.
> 
> The issue is that changing the plasmoid.status (to Passive?) while the popup is open, causes it to close. Even a check if the current status is the same and not changing it did not help as the plasmoid gets "NeedAttentionStatus" for some reason when it opens. This patch makes it never ever touch the plasmoid.status property while the popup is opened. To ensure the status is still properly set, it will force an update when closing the popup.
> 
> It also changes from legacy string-based enums to real enums.
> 
> 
> Diffs
> -----
> 
>   plasma/generic/applets/batterymonitor/contents/code/logic.js def21e5 
>   plasma/generic/applets/batterymonitor/contents/ui/batterymonitor.qml e87cf78 
> 
> Diff: https://git.reviewboard.kde.org/r/117533/diff/
> 
> 
> Testing
> -------
> 
> Changing brightness does not cause the popup to close and status is still properly updated while the popup is not shown.
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140420/b2b46792/attachment.html>


More information about the Plasma-devel mailing list