QML UI: if we don't have a current position, update it later

Once we get a new fix we asynchronously update the text.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-04-14 11:12:07 -07:00
parent ca3be8f376
commit 1d95cc4cbf
3 changed files with 13 additions and 1 deletions

View file

@ -177,6 +177,12 @@ Item {
gpsText = manager.getCurrentPosition()
}
}
Connections {
target: manager
onWaitingForPositionChanged: {
gpsText = manager.getCurrentPosition()
}
}
Controls.Label {
Layout.alignment: Qt.AlignRight