Commit dbdf3b18 authored by Marco Martin's avatar Marco Martin Committed by Nate Graham
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


(cherry picked from commit 11026042)
parent 65c69551
......@@ -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
......
Markdown is supported
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