Mobile: also show busy spinner when applying GPS fixes

That's another function that can take a little while.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-10-24 20:59:40 -04:00
parent 9b6ec64853
commit 65910177b2

View file

@ -296,6 +296,7 @@ Kirigami.ApplicationWindow {
} }
text: qsTr("Apply GPS fixes") text: qsTr("Apply GPS fixes")
onTriggered: { onTriggered: {
showBusy()
manager.applyGpsData() manager.applyGpsData()
globalDrawer.close() globalDrawer.close()
diveModel.resetInternalData() diveModel.resetInternalData()
@ -304,6 +305,7 @@ Kirigami.ApplicationWindow {
pageStack.pop() pageStack.pop()
} }
pageStack.push(diveList) pageStack.push(diveList)
hideBusy()
} }
} }
Kirigami.Action { Kirigami.Action {