diff options
author | 2020-04-01 07:27:10 -0700 | |
---|---|---|
committer | 2020-04-04 12:00:24 -0700 | |
commit | 8801ae857ebfc720fcbd812baae425bc8f90e65e (patch) | |
tree | 0f62f6d1846766a260a54282e70e9a57a0535c15 /mobile-widgets/qml/DiveList.qml | |
parent | d317eefb6726314efd20ae1007c2298ecf99e772 (diff) | |
download | subsurface-8801ae857ebfc720fcbd812baae425bc8f90e65e.tar.gz |
mobile/startup: show notification directly in the UI window
Until the app is initialized, we have problems getting the 'floating'
passive notifications to show up and be useful. Instead update the user
by filling a text block on the otherwise empty initial page of the app.
Delay the switch to the dive list until the app is initialized and then
use the passive notifications again. While we are initializing also show
a busy spinner so the user doesn't think the app is hung.
As a side effect of this change, the dive list isn't shown until our
models are initialized. And strangely this causes every single possible
delegate to be instantiated. We can prevent that by not setting the dive
list model until after we are done setting up the model.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 50f69436b..b048d4f2d 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -13,7 +13,7 @@ Kirigami.ScrollablePage { title: qsTr("Dive list") verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff property int horizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1 - property QtObject diveListModel: diveModel + property QtObject diveListModel: null supportsRefreshing: true onRefreshingChanged: { |