Skip to content

[applets/systemtray] Filter configure action out of overflow menu correctly

This code was trying to filter out the configure action but failing because it was comparing a QMenuItem to a QAction. We need to compare the QMenuItem's internal QAction in order for the configure action to ever match.

Now the overflow menu for System Tray applets no longer shows a redundant configure action:

Screenshot_20210516_202118

If this change is accepted, I will push a similar commit to [plasma-framework]/src/declarativeimports/plasmaextracomponents/qml/BasicPlasmoidHeading.qml as it contains a copy of this logic with the same error.

@mart @davidedmundson

Merge request reports

Loading