Bug 470831 - ReferenceError: hiddenTasks is not defined
Summary: ReferenceError: hiddenTasks is not defined
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-06-09 14:46 UTC by Nate Graham
Modified: 2023-06-22 10:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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