Review Request 110122: Patch to handle notifications with low timeouts masking earlier important notifications.

Marco Martin notmart at gmail.com
Fri May 3 18:27:50 UTC 2013



> On April 25, 2013, 2:02 p.m., Aaron J. Seigo wrote:
> > plasma/generic/applets/notifications/contents/ui/LastNotificationPopup.qml, line 188
> > <http://git.reviewboard.kde.org/r/110122/diff/1/?file=140373#file140373line188>
> >
> >     this tends to lead to accidental timers running when the code changes later (QML makes it a little too easy to accomplish that at times ;)
> >     
> >     would prefer that this stays as a single shot and is restarted as needed.
> 
> James Pike wrote:
>     Yes I totally agree with you, unfortunately due to a limitation of the timer class, when used from QML, this is not possible (you can't "re-arm" the timer from inside of a timer callback).
> 
> James Pike wrote:
>     I actually implemented it as you would have preferred in my first shot, this lead me to discover the timer limitation. I had to re-implement it to use repeat in this way later.

hmm, youcan actually call timer.restart(), that should work just fine


- Marco


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


On April 25, 2013, 1:58 p.m., James Pike wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110122/
> -----------------------------------------------------------
> 
> (Updated April 25, 2013, 1:58 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Description
> -------
> 
> Currently the timeout of the last notification to arrive is used as a basis for hiding the notification display. This means that a notification with a high timeout can get hidden by a new notification arriving with a much lower timeout.
> 
> This patch simply changes the behaviour to, when expiring a timer, go back through the stack and display the most recent unexpired timer. If all timers are expired the notification is closed as before.
> 
> 
> This addresses bug 318295.
>     http://bugs.kde.org/show_bug.cgi?id=318295
> 
> 
> Diffs
> -----
> 
>   plasma/generic/applets/notifications/contents/ui/LastNotificationPopup.qml 2fa1b11 
> 
> Diff: http://git.reviewboard.kde.org/r/110122/diff/
> 
> 
> Testing
> -------
> 
> Test script in https://bugs.kde.org/show_bug.cgi?id=318295
> 
> 
> Thanks,
> 
> James Pike
> 
>

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


More information about the Plasma-devel mailing list