controlcenter: lazyloading applicatoins in launcher pane
This commit is contained in:
parent
f77323b136
commit
d9034ede8e
1 changed files with 64 additions and 50 deletions
|
|
@ -300,8 +300,21 @@ RowLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledListView {
|
Loader {
|
||||||
|
id: appsListLoader
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
asynchronous: true
|
||||||
|
active: {
|
||||||
|
// Lazy load: activate when left pane is loaded
|
||||||
|
// The ListView will load asynchronously, and search will work because filteredApps
|
||||||
|
// is updated regardless of whether the ListView is loaded
|
||||||
|
return leftLauncherLoader.item !== null;
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceComponent: StyledListView {
|
||||||
id: appsListView
|
id: appsListView
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
|
@ -372,6 +385,7 @@ RowLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: rightLauncherItem
|
id: rightLauncherItem
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue