Review Request 127768: Don't hardcode app name to filter notifications
David Kahles
david.kahles96 at gmail.com
Wed Apr 27 22:24:53 UTC 2016
> On April 28, 2016, 12:15 a.m., Aleix Pol Gonzalez wrote:
> > The solution looks overly to complex IMHO, but it's indeed better like this.
I agree that it's to complex, but I think it's the only way to fix it now.
Do you think it's worth adding a method to KNotification instead? In this case, we could remove this code as soon as we can depend on this frameworks version.
- David
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127768/#review94924
-----------------------------------------------------------
On April 27, 2016, 9:08 p.m., David Kahles wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127768/
> -----------------------------------------------------------
>
> (Updated April 27, 2016, 9:08 p.m.)
>
>
> Review request for kdeconnect.
>
>
> Repository: kdeconnect-kde
>
>
> Description
> -------
>
> The app name used by KNotification is translated, and thus the filtering
> doesn't work if the translated app name is different.
>
> Previously, when the phone gets a new notification and sends it to the computer, kdeconnect will post
> a notification, but record this notification (as the filtering didn't work) and send it back to the phone. Therefore each notification on the phone will there be two times.
>
> This works on master because notifications aren't synchronized with the phone (a bug?). On sslrefactor this is fixed, and thus we need to fix the filtering.
>
> I need to parse this configuration file, as I don't see another way to retrieve the translated app name.
>
>
> Diffs
> -----
>
> plugins/notifications/CMakeLists.txt d74cca6b249411d981a23fdf6ec5a493efd472e1
> plugins/notifications/notificationslistener.h dfa37b8a914e8cd03e1bb3d3eaf8f4f66269ef02
> plugins/notifications/notificationslistener.cpp d21f3d733752a155ea26f34bfab2b873f7e3de72
>
> Diff: https://git.reviewboard.kde.org/r/127768/diff/
>
>
> Testing
> -------
>
> If the phone gets a notification, it will appear on the computer, but not again on the phone.
> Sending notification from the computer to the phone still works fine.
>
>
> Thanks,
>
> David Kahles
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20160427/65f20496/attachment.html>
More information about the KDEConnect
mailing list