effects/overview: Delay starting the intro animation
The ExpoLayout delays relayouting for optimization purposes. However, this means that new geometry will be available only after returning to the event loop. This change delays starting the intro animation so it can be started with new geometries.
This commit is contained in:
parent
83ccfbb571
commit
8e0264d034
1 changed files with 6 additions and 1 deletions
|
@ -15,6 +15,10 @@ FocusScope {
|
|||
|
||||
property bool organized: false
|
||||
|
||||
function start() {
|
||||
container.organized = true;
|
||||
}
|
||||
|
||||
function stop() {
|
||||
container.organized = false;
|
||||
}
|
||||
|
@ -118,6 +122,7 @@ FocusScope {
|
|||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
container.organized = true;
|
||||
// Delay starting the effect to let the window heap arrange thumbnails.
|
||||
Qt.callLater(container.start);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue