From 6fabcea6053c1c76b2afc15a52c8134442a9efd3 Mon Sep 17 00:00:00 2001 From: Yari Polla Date: Thu, 12 May 2022 01:51:31 +0200 Subject: [PATCH] taskswitcher: binding fixes --- components/mobileshell/qml/taskswitcher/Thumbnail.qml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/components/mobileshell/qml/taskswitcher/Thumbnail.qml b/components/mobileshell/qml/taskswitcher/Thumbnail.qml index f574ea95..94e1b655 100644 --- a/components/mobileshell/qml/taskswitcher/Thumbnail.qml +++ b/components/mobileshell/qml/taskswitcher/Thumbnail.qml @@ -12,9 +12,10 @@ import org.kde.taskmanager 0.1 as TaskManager TaskManager.PipeWireSourceItem { id: root - visible: false + visible: nodeId > 0 + nodeId: waylandItem.nodeId - readonly property string uuid: waylandItem.uuid + readonly property alias uuid: waylandItem.uuid function refresh() { if (model.WinIdList) { @@ -25,12 +26,6 @@ TaskManager.PipeWireSourceItem { TaskManager.ScreencastingRequest { id: waylandItem uuid: "" - - // Visible only if casting has begun - onNodeIdChanged: { - root.nodeId = nodeId; - root.visible = true; - } } }