summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Fieroni <[email protected]>2019-01-14 20:14:02 +0200
committerAnthony Fieroni <[email protected]>2019-01-14 20:14:02 +0200
commit0885170daf56fbb2d5558ae271bb44043a76d018 (patch)
tree66be751db3bcf7f29ae52904141c481577842c80
parent3fa868a73f87adff7ce1078126150c1a60c05894 (diff)
[systemtray] Workaround component creation
CCBUG: 390890 Differential Revision: https://phabricator.kde.org/D16890 Signed-off-by: Anthony Fieroni <[email protected]>
-rw-r--r--applets/systemtray/package/contents/ui/main.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/applets/systemtray/package/contents/ui/main.qml b/applets/systemtray/package/contents/ui/main.qml
index 55623e5..4e56996 100644
--- a/applets/systemtray/package/contents/ui/main.qml
+++ b/applets/systemtray/package/contents/ui/main.qml
@@ -50,7 +50,8 @@ MouseArea {
property alias statusNotifierModel: statusNotifierModel
- property Component plasmoidItemComponent
+ // workaround https://bugreports.qt.io/browse/QTBUG-71238 / https://bugreports.qt.io/browse/QTBUG-72004
+ property Component plasmoidItemComponent: Qt.createComponent("items/PlasmoidItem.qml")
Plasmoid.onExpandedChanged: {
if (!plasmoid.expanded) {
@@ -102,9 +103,6 @@ MouseArea {
}
Containment.onAppletAdded: {
- if (!plasmoidItemComponent) {
- plasmoidItemComponent = Qt.createComponent("items/PlasmoidItem.qml");
- }
//Allow the plasmoid expander to know in what window it will be
var plasmoidContainer = plasmoidItemComponent.createObject(invisibleEntriesContainer, {"x": x, "y": y, "applet": applet});