consider an empty panel always "applets loaded"

if a panel doesn't ahve applets, it can't have a "currently
loading" as the status of its applets.
this fixes panels sometimes not showing up when reconnecting screens

CCBUG:373836
This commit is contained in:
Marco Martin 2016-12-21 18:10:04 +01:00
parent 8431ef6e03
commit 6ae3a073db

View File

@ -297,6 +297,10 @@ void Containment::restoreContents(KConfigGroup &group)
d->createApplet(plugin, QVariantList(), appId);
}
//if there are no applets, none of them is "loading"
if (Containment::applets().isEmpty()) {
d->appletsUiReady = true;
}
foreach (Applet *applet, Containment::applets()) {
if (!applet->pluginMetaData().isValid()) {
applet->updateConstraints(Plasma::Types::UiReadyConstraint);