mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile UI: delay reading the dive list until app is active
This way the launch screen is shown significantly shorter on a device, and instead the user sees our progress notifications. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0673e53a68
commit
001fb7f4fa
2 changed files with 7 additions and 11 deletions
|
|
@ -769,6 +769,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
}
|
||||
}
|
||||
Component.onCompleted: {
|
||||
if (Screen.manufacturer + " " + Screen.model + " " + Screen.name !== " ")
|
||||
manager.appendTextToLog("Running on " + Screen.manufacturer + " " + Screen.model + " " + Screen.name)
|
||||
manager.appendTextToLog("StartPage completed -- initialized is " + initialized)
|
||||
}
|
||||
}
|
||||
|
|
@ -910,17 +912,6 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
showDownloadForPluggedInDevice()
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
// try to see if we can detect certain device vendors through these properties
|
||||
if (Screen.manufacturer + " " + Screen.model + " " + Screen.name !== " ")
|
||||
manager.appendTextToLog("Running on " + Screen.manufacturer + " " + Screen.model + " " + Screen.name)
|
||||
rootItem.visible = true
|
||||
manager.appendTextToLog("setting the defaultColumnWidth to " + Kirigami.Units.gridUnit * 21)
|
||||
pageStack.defaultColumnWidth = Kirigami.Units.gridUnit * 21
|
||||
manager.finishSetup()
|
||||
manager.appInitialized()
|
||||
}
|
||||
onClosing: {
|
||||
// this duplicates the check that is already in the onBackRequested signal handler of the DiveList
|
||||
if (globalDrawer.visible) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue