mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
taskswitcher: avoid double binding in thumbnail
This commit is contained in:
parent
a462ad4263
commit
d22df8f6fa
1 changed files with 7 additions and 6 deletions
|
|
@ -11,13 +11,8 @@ import QtQuick.Window 2.2
|
||||||
import org.kde.taskmanager 0.1 as TaskManager
|
import org.kde.taskmanager 0.1 as TaskManager
|
||||||
|
|
||||||
TaskManager.PipeWireSourceItem {
|
TaskManager.PipeWireSourceItem {
|
||||||
|
id: root
|
||||||
visible: false
|
visible: false
|
||||||
nodeId: waylandItem.nodeId
|
|
||||||
|
|
||||||
// Visible only if casting has begun
|
|
||||||
onNodeIdChanged: {
|
|
||||||
visible = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
readonly property string uuid: waylandItem.uuid
|
readonly property string uuid: waylandItem.uuid
|
||||||
|
|
||||||
|
|
@ -30,6 +25,12 @@ TaskManager.PipeWireSourceItem {
|
||||||
TaskManager.ScreencastingRequest {
|
TaskManager.ScreencastingRequest {
|
||||||
id: waylandItem
|
id: waylandItem
|
||||||
uuid: ""
|
uuid: ""
|
||||||
|
|
||||||
|
// Visible only if casting has begun
|
||||||
|
onNodeIdChanged: {
|
||||||
|
root.nodeId = nodeId;
|
||||||
|
root.visible = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue