Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 3a5369e8 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Folder View] Delay delegate creation until plasmoid expands

In Plasma expanded representation is created only on demand but since Folder View is used as
containment and already massively complex, all of this is created right away.
To speed up startup, delay setting the model until the applet is expanded.

Differential Revision:
parent 2ed51fd7
......@@ -148,6 +148,15 @@ Item {
Connections {
target: plasmoid
onExpandedChanged: {
if (plasmoid.expanded && dir.status === Folder.FolderModel.Ready && !gridView.model) {
gridView.model = positioner;
// Lower the toolBox when an item is hovered, so it doesn't interfere with
// its interaction (e.g. the selection button in the top left, cf. Bug 337060)
Binding {
......@@ -1061,7 +1070,7 @@ Item {
previewPlugins: plasmoid.configuration.previewPlugins
onListingCompleted: {
if (!gridView.model) {
if (!gridView.model && plasmoid.expanded) {
gridView.model = positioner;
Markdown is supported
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