preload only after the containment emitted uiReadyChanged
this way we are sure not to delay the panel load
This commit is contained in:
parent
a525489d5d
commit
e3c5417799
@ -678,7 +678,10 @@ void AppletQuickItem::init()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d->s_preloadPolicy >= AppletQuickItemPrivate::Adaptive) {
|
if (!d->applet->isContainment() && d->applet->containment()) {
|
||||||
|
connect(d->applet->containment(), &Plasma::Containment::uiReadyChanged,
|
||||||
|
this, [this](bool uiReady) {
|
||||||
|
if (uiReady && d->s_preloadPolicy >= AppletQuickItemPrivate::Adaptive) {
|
||||||
const int preloadWeight = d->preloadWeight();
|
const int preloadWeight = d->preloadWeight();
|
||||||
qCInfo(LOG_PLASMAQUICK) << "New Applet " << d->applet->title() << "with a weight of" << preloadWeight;
|
qCInfo(LOG_PLASMAQUICK) << "New Applet " << d->applet->title() << "with a weight of" << preloadWeight;
|
||||||
|
|
||||||
@ -697,6 +700,8 @@ void AppletQuickItem::init()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user