[applets/appmenu] Fix undefined Alt data source access
In Wayland session data sources for modifier keys might be unavailable, in which case the whole `source.data.Alt` is undefined. Standard JavaScript try-catch didn't help much, because short-circuiting operator && simply returns left-hand-side `undefined` value which is falsy. It used to spam error messages to a console at a rate proportional to the number of top-level menu items: file:///usr/share/plasma/plasmoids/org.kde.plasma.appmenu/contents/ui/main.qml:112:17: Unable to assign [undefined] to bool Amends 156415f3
Please register or sign in to comment