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