mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 01:34:46 +00:00
Revert "taskswitcher: Improve performance of task preview loading"
This reverts commit 1ae83644c8.
This commit is contained in:
parent
1ae83644c8
commit
c4472ca39a
2 changed files with 7 additions and 5 deletions
|
|
@ -227,10 +227,13 @@ Item {
|
||||||
// attempt to load window preview
|
// attempt to load window preview
|
||||||
Loader {
|
Loader {
|
||||||
id: pipeWireLoader
|
id: pipeWireLoader
|
||||||
active: MobileShell.MobileShellSettings.taskSwitcherPreviewsEnabled
|
active: (taskSwitcher.visible || taskSwitcher.tasksModel.taskReorderingEnabled) && MobileShell.MobileShellSettings.taskSwitcherPreviewsEnabled
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: Qt.resolvedUrl("./Thumbnail.qml")
|
source: Qt.resolvedUrl("./Thumbnail.qml")
|
||||||
|
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
|
|
||||||
|
onLoaded: this.item.refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
// darken effect
|
// darken effect
|
||||||
|
|
|
||||||
|
|
@ -13,14 +13,13 @@ import org.kde.taskmanager 0.1 as TaskManager
|
||||||
|
|
||||||
PipeWire.PipeWireSourceItem {
|
PipeWire.PipeWireSourceItem {
|
||||||
id: root
|
id: root
|
||||||
visible: (taskSwitcher.visible || taskSwitcher.tasksModel.taskReorderingEnabled)
|
visible: nodeId > 0
|
||||||
opacity: (nodeId > 0) ? 1 : 0
|
|
||||||
nodeId: waylandItem.nodeId
|
nodeId: waylandItem.nodeId
|
||||||
|
|
||||||
readonly property alias uuid: waylandItem.uuid
|
readonly property alias uuid: waylandItem.uuid
|
||||||
|
|
||||||
onVisibleChanged: {
|
function refresh() {
|
||||||
if (model.WinIdList && visible) {
|
if (model.WinIdList) {
|
||||||
waylandItem.uuid = model.WinIdList[0];
|
waylandItem.uuid = model.WinIdList[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue