Only consider a containment as finished if it actually passes a "true".
So far, we were only considering the fact that teh signal was being emitted, and that's doesn't seem correct. REVIEW: 119191
This commit is contained in:
parent
8fb62cc0a4
commit
459f81814d
@ -532,7 +532,10 @@ QList<Plasma::Containment *> CoronaPrivate::importLayout(const KConfigGroup &con
|
||||
foreach (Containment *containment, containments) {
|
||||
if (!containment->isUiReady() && containment->lastScreen() < q->numScreens()) {
|
||||
++containmentsStarting;
|
||||
QObject::connect(containment, &Plasma::Containment::uiReadyChanged, [ = ]() {
|
||||
QObject::connect(containment, &Plasma::Containment::uiReadyChanged, [=](bool ready) {
|
||||
if (!ready)
|
||||
return;
|
||||
|
||||
--containmentsStarting;
|
||||
if (containmentsStarting <= 0) {
|
||||
emit q->startupCompleted();
|
||||
|
Loading…
Reference in New Issue
Block a user