From d22df8f6fa1e6e7366e0d71456c63aa2e4b6a90c Mon Sep 17 00:00:00 2001 From: Yari Polla Date: Wed, 11 May 2022 23:29:37 +0200 Subject: [PATCH] taskswitcher: avoid double binding in thumbnail --- .../mobileshell/qml/taskswitcher/Thumbnail.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/components/mobileshell/qml/taskswitcher/Thumbnail.qml b/components/mobileshell/qml/taskswitcher/Thumbnail.qml index 1330e549..f574ea95 100644 --- a/components/mobileshell/qml/taskswitcher/Thumbnail.qml +++ b/components/mobileshell/qml/taskswitcher/Thumbnail.qml @@ -11,13 +11,8 @@ import QtQuick.Window 2.2 import org.kde.taskmanager 0.1 as TaskManager TaskManager.PipeWireSourceItem { + id: root visible: false - nodeId: waylandItem.nodeId - - // Visible only if casting has begun - onNodeIdChanged: { - visible = true; - } readonly property string uuid: waylandItem.uuid @@ -30,6 +25,12 @@ TaskManager.PipeWireSourceItem { TaskManager.ScreencastingRequest { id: waylandItem uuid: "" + + // Visible only if casting has begun + onNodeIdChanged: { + root.nodeId = nodeId; + root.visible = true; + } } }