mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
taskswitcher: binding fixes
This commit is contained in:
parent
d22df8f6fa
commit
6fabcea605
1 changed files with 3 additions and 8 deletions
|
|
@ -12,9 +12,10 @@ import org.kde.taskmanager 0.1 as TaskManager
|
||||||
|
|
||||||
TaskManager.PipeWireSourceItem {
|
TaskManager.PipeWireSourceItem {
|
||||||
id: root
|
id: root
|
||||||
visible: false
|
visible: nodeId > 0
|
||||||
|
nodeId: waylandItem.nodeId
|
||||||
|
|
||||||
readonly property string uuid: waylandItem.uuid
|
readonly property alias uuid: waylandItem.uuid
|
||||||
|
|
||||||
function refresh() {
|
function refresh() {
|
||||||
if (model.WinIdList) {
|
if (model.WinIdList) {
|
||||||
|
|
@ -25,12 +26,6 @@ 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