Bug 470831

Summary: ReferenceError: hiddenTasks is not defined
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: materka
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Nate Graham 2023-06-09 14:46:51 UTC
Full errors:

Jun 09 08:44:06 Liberator plasmashell[21643]: file:///home/nate/kde/usr6/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/AbstractItem.qml:19:5: ReferenceError: hiddenTasks is not defined
Jun 09 08:44:06 Liberator plasmashell[21643]: file:///home/nate/kde/usr6/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/AbstractItem.qml:18:5: ReferenceError: hiddenTasks is not defined

Indeed, in these files, `hiddenTasks` is not defined. In qt5, this fell through to the whole component hierarchy, so it could be found despite living in another file. In Qt6, this doesn't work anymore. In addition to the error message spam, this means that something in the System Tray is now broken.
Comment 1 Marco Martin 2023-06-22 09:59:41 UTC
Git commit f5103a167a75b6cd9d01abae2ba37884187e89cb by Marco Martin.
Committed on 22/06/2023 at 09:59.
Pushed by mart into branch 'master'.

Fix warnings

Don't try to access the hiddenTasks id from outside files, but
rather set the proper properties in the item on the view side.

M  +5    -1    applets/systemtray/package/contents/ui/HiddenItemsView.qml
M  +3    -5    applets/systemtray/package/contents/ui/items/AbstractItem.qml
M  +7    -0    applets/systemtray/package/contents/ui/items/ItemLoader.qml
M  +5    -0    applets/systemtray/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/f5103a167a75b6cd9d01abae2ba37884187e89cb