plasmoidviewer ConfigCategoryDelegate.qml:53:13: Unable to assign [undefined] to bool

When testing [Kickoff]( applets/kickoff · master · Plasma / Plasma Desktop · GitLab ) with plasmoidviewer, a test checking Window.active fails in ConfigCategoryDelegate.qml, at line 53 (the same test appears in line 65, also). The test actually fails with all launcher type plasmoid I’ve tested (Kicker, Kickoff (alt), Kickon, Concepto, Menu 11 Next). And it triggers my OCD :sweat_smile: .

The code is (at line 53)

selected: Window.active && (delegate.highlighted || delegate.pressed)

or, at line 65,

color: Window && (delegate.highlighted || delegate.pressed) ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor

I do not have enough knowledge to understand the cause of this, so I’m trying to find information here. To me, seems it is either of the two possibilities:

1. Window.active must exist and the test fail highlights an issue in all plasmoids I’ve tested.

2. Window.active should be allowed to be undefined, so it is an issue with plasmoidviewer, solvable by something like replacing Window.active with (Window.active ?? false) in ConfigCategoryDelegate.qml ( plasmoidviewer/qmlpackages/shell/contents/configuration/ConfigCategoryDelegate.qml · master · Plasma / Plasma SDK · GitLab ).

So, which is it? Or there’s another cause?
I apologize if I missed anything.