controlcenter: lazyloading applicatoins in launcher pane

This commit is contained in:
ATMDA 2025-11-16 13:26:11 -05:00
parent f77323b136
commit d9034ede8e

View file

@ -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
Layout.fillWidth: true
Layout.fillHeight: true
@ -372,6 +385,7 @@ RowLayout {
}
}
}
}
Item {
id: rightLauncherItem