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:
parent
8431ef6e03
commit
6ae3a073db
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user