Skip to content

applets/keyboardindicator: Fix QML warning

Ismael Asensio requested to merge work/iasensio/keyboard-fix-warning into master

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

  1. Configure the applet to show the state of CapsLock, but not NumLock.
  2. Enable and disable CapsLock
  3. Check the console output of plasmashell

Really minor fix. Can get backported but not really necessary.

Edited by Ismael Asensio

Merge request reports

Loading