mobile UI/login: move onCompleted actions to main

manager.finishSetup() have nothing to do with startpage/divelist,
but belong in main (seeing main as responsible for setup and window layout).

Move onCompleted functionality to main.

Signed-off-by: Jan Iversen <jani@apache.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2019-12-19 10:40:54 +01:00 committed by Dirk Hohndel
parent 48bae80577
commit d1bee58dad
2 changed files with 2 additions and 5 deletions

View file

@ -408,11 +408,6 @@ Kirigami.ScrollablePage {
onVisibleChanged: {
setupActions();
}
Component.onCompleted: {
manager.finishSetup();
setupActions();
}
}
Controls.Label {

View file

@ -858,8 +858,10 @@ if you have network connectivity and want to sync your data to cloud storage."),
rootItem.opacity = 1
manager.appendTextToLog("setting the defaultColumnWidth to " + Kirigami.Units.gridUnit * 21)
pageStack.defaultColumnWidth = Kirigami.Units.gridUnit * 21
manager.finishSetup()
manager.appInitialized()
}
/* TODO: Verify where opacity went to.
Behavior on opacity {
NumberAnimation {