Commit 11026042 authored by Marco Martin's avatar Marco Martin
Browse files

save layout when corona startup is completed

When the component is completed the corona startup may not be complete
yet.
This causes a race condition when most of the times when a layout
is created from a lajout.js file, applets geometries don't get correctly
saved.
so reinvoke the save timer when the startup completed signal is emitted
from corona

BUG:433799
parent f17c9171
......@@ -502,8 +502,8 @@ void AppletsLayout::componentComplete()
}
if (m_containment && m_containment->corona()) {
connect(m_containment->corona(), &Plasma::Corona::startupCompleted, this, []() {
// m_savedSize = size();
connect(m_containment->corona(), &Plasma::Corona::startupCompleted, this, [this]() {
save();
});
// When the screen geometry changes, we need to know the geometry just before it did, so we can apply out heuristic of keeping the distance with borders
// constant
......
Supports Markdown
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