Small window: close main pane when recycling page
This commit is contained in:
parent
f5c6a2627b
commit
462d3972ff
|
@ -59,16 +59,20 @@ HLoader {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function closeMainPane() {
|
||||||
|
if (mainPane.collapse) mainPane.close()
|
||||||
|
}
|
||||||
|
|
||||||
function takeFocus() {
|
function takeFocus() {
|
||||||
pageLoader.item.forceActiveFocus()
|
pageLoader.item.forceActiveFocus()
|
||||||
if (mainPane.collapse) mainPane.close()
|
closeMainPane()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
clip: appearAnimation.running
|
clip: appearAnimation.running
|
||||||
|
|
||||||
onLoaded: { takeFocus(); appearAnimation.restart() }
|
onLoaded: { takeFocus(); appearAnimation.restart() }
|
||||||
onRecycled: appearAnimation.restart()
|
onRecycled: { closeMainPane(); appearAnimation.restart() }
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (! py.startupAnyAccountsSaved) {
|
if (! py.startupAnyAccountsSaved) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user