taskswitcher: binding fixes

This commit is contained in:
Yari Polla 2022-05-12 01:51:31 +02:00 committed by Devin Lin
parent d22df8f6fa
commit 6fabcea605

View file

@ -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;
}
}
}