applets/keyboardindicator: Fix QML warning
Prevent the expression from getting undefined
when CapsLock is not enabled and NumLock not selected in the configuration.
Fixes the QML warning: file:///home/isma/kde/usr/share/plasma/plasmoids/org.kde.plasma.keyboardindicator/contents/ui/main.qml:61:13: Unable to assign [undefined] to bool
Test plan
- Configure the applet to show the state of
CapsLock
, but notNumLock
. - Enable and disable
CapsLock
- Check the console output of
plasmashell
Really minor fix. Can get backported but not really necessary.
Edited by Ismael Asensio