mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: don't load dives before the UI has been instantiated
This should deal with a big part of the delay when starting the app. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2f2e9da2cd
commit
f6ae8bf3ea
2 changed files with 8 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ MobileComponents.ApplicationWindow {
|
|||
stackView.push(themetest)
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
MouseArea {
|
||||
height: childrenRect.height
|
||||
width: MobileComponents.Units.gridUnit * 10
|
||||
|
|
@ -272,5 +272,6 @@ MobileComponents.ApplicationWindow {
|
|||
|
||||
Component.onCompleted: {
|
||||
print("MobileComponents.Units.gridUnit is: " + MobileComponents.Units.gridUnit);
|
||||
manager.loadDives();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue