When I try in the plasma desktop console the algorithm that calculate the biggestId in systray-to-notifications-widget.js, it gives me a wrong result for biggestId and biggestId+1.
The real biggestId in my plasma-desktop-appletsrc is 82 ([Containments][76][Applets][82]).
The current algorithm gives me:
print(biggestId) -> 5
print(biggestId+1) -> 51
print(typeof(biggestId)) -> string
because in
for (var j in activity.widgetIds) {
if (j > biggestId) {
biggestId = j
}
j is the key (string key) of the array activity.widgetIds.
The suggested patch gives the good result.
regards,
Luc Menut - Mageia
PS: I don't have write access to kde git, so could you commit the change for me if the patch looks fine. Thanks.
|