Commit 849f990f authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

[taskmanager] Add additional check before trying to access it

pipeWireLoader.item might be null and it needs to checked before
trying to access pipeWireLoader.item.visible
parent 4d923b3e
Pipeline #217291 passed with stage
in 2 minutes and 39 seconds
......@@ -206,7 +206,7 @@ ColumnLayout {
}
Loader {
active: (pipeWireLoader.active && pipeWireLoader.item.visible) || (thumbnailLoader.status === Loader.Ready && !thumbnailSourceItem.isMinimized)
active: (pipeWireLoader.item && pipeWireLoader.item.visible) || (thumbnailLoader.status === Loader.Ready && !thumbnailSourceItem.isMinimized)
asynchronous: true
visible: active
anchors.fill: pipeWireLoader.active ? pipeWireLoader : thumbnailLoader
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment