From 0885170daf56fbb2d5558ae271bb44043a76d018 Mon Sep 17 00:00:00 2001 From: Anthony Fieroni Date: Mon, 14 Jan 2019 20:14:02 +0200 Subject: [systemtray] Workaround component creation CCBUG: 390890 Differential Revision: https://phabricator.kde.org/D16890 Signed-off-by: Anthony Fieroni --- applets/systemtray/package/contents/ui/main.qml | 6 ++---- 1 file 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}); -- cgit v1.1