https://bugs.kde.org/show_bug.cgi?id=393630

--- Comment #23 from Chris Holland <zrenf...@gmail.com> ---
I can reproduce the bug by modifying ConfigGeneral.qml.
I can also reproduce the bug by simply opening the ConfigEntries.qml tab too
without modifying ConfigGeneral.qml.

Copy the *private* systemtray code to the home dir so we can edit without root.

    cp -r /usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray
~/.local/share/plasma/plasmoids/

Luckily, we can easily reproduce by testing in `plasmoidviewer`, which speeds
testing up!

    QML_DISABLE_DISK_CACHE=true plasmoidviewer -a org.kde.plasma.systemtray

`plasmoid.rootItem` is apparently a way to access the "main" qml item of the
widget (TIL). I'm not certain if any of the changes in appletquickitem.cpp
since April 2018 (when this bug was first submitted) would cause this bug. I do
remember that the fullRepresentation is preloaded now (so that it opens faster
on the first click), which might be why this bug appeared. In any case, this is
the first time I've seen `plasmoid.rootItem` used.

*
https://github.com/KDE/plasma-framework/blame/master/src/plasmaquick/appletquickitem.cpp#L877

When the bug is active, I noticed that when I was able to expand the system
tray (like if I clicked the triangle thingy), hovering any of the listed items
caused this warning:

   
file:///home/chris/.local/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/AbstractItem.qml:87:
TypeError: Cannot read property 'hoveredItem' of null

Testing with:

    // AbstractItem.qml
    onContainsMouseChanged: {
        if (hidden && containsMouse) {
            console.log('AbstractItem.onContainsMouseChanged.abstractItem',
abstractItem)
            console.log('\t root', root)
            console.log('\t hiddenLayout', root.hiddenLayout)
            console.log('\t hoveredItem', root.hiddenLayout.hoveredItem)
            root.hiddenLayout.hoveredItem = abstractItem
        }
    }


Gave me:

    qml: AbstractItem.onContainsMouseChanged.abstractItem
PlasmoidItem_QMLTYPE_192(0x564eb3803b40)
    qml:     root QQuickMouseArea_QML_141(0x564eb3138f60)
    qml:     hiddenLayout null
   
file:///home/chris/.local/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/AbstractItem.qml:87:
TypeError: Cannot read property 'hoveredItem' of null

So it appears that `main.hiddenLayout` aliased to =>
`ExpandedRepresentation.hiddenLayout` aliased to => `HiddenItemsView.layout`
aliased to => `Column { id: hiddenTasksColumn }` is returning null after the
bug takes effect.

I made a video of the bug here: (I didn't solve the bug so feel free to stop
watching after 5min)
https://www.youtube.com/watch?v=DdOtE9FIqfg#t1m49

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to