manage the case loading is not immediate
This commit is contained in:
parent
fba45d9360
commit
3b24340cc8
@ -66,6 +66,12 @@ Item {
|
||||
onWhenChanged: loadTimer.restart()
|
||||
onConditionalSourceChanged: loadTimer.restart()
|
||||
|
||||
onLoaded: {
|
||||
loader.oldConditionalSource = loader.conditionalSource
|
||||
loader.item.visible = true
|
||||
loader.item.anchors.fill = loader.item.parent
|
||||
loadTimer.stop()
|
||||
}
|
||||
Timer {
|
||||
id: loadTimer
|
||||
interval: 0
|
||||
@ -79,9 +85,6 @@ Item {
|
||||
} else {
|
||||
loader.sourceComponent = loader.conditionalSource
|
||||
}
|
||||
loader.oldConditionalSource = loader.conditionalSource
|
||||
loader.item.visible = true
|
||||
loader.item.anchors.fill = loader.item.parent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user