aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2020-04-02 13:58:30 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2020-04-03 07:19:59 +0000
commit441445bcf70b6f53c334bf732198923bb05179dd (patch)
treea838fe295e370b3bd4c8e806b211a1998a54dc85
parent6c35a7d6f81f5fcfe08f31e635871a395c7d5823 (diff)
[map] clear navistate together with map start-up
-we can't track app's killing, but we can clear state for the next start-up -also remove missed property causing warnings Fixes: AUTOSUITE-1554 Change-Id: I9dadab614a3fe5456d531e11aba6a86d0eee2a1e Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
-rw-r--r--apps/com.pelagicore.map/stores/MapStore.qml5
-rw-r--r--apps/com.pelagicore.map/stores/NavigationStore.qml5
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/com.pelagicore.map/stores/MapStore.qml b/apps/com.pelagicore.map/stores/MapStore.qml
index 5694e867..fe2725dc 100644
--- a/apps/com.pelagicore.map/stores/MapStore.qml
+++ b/apps/com.pelagicore.map/stores/MapStore.qml
@@ -248,11 +248,6 @@ QtObject {
}
plugin: herePlugin
-
- onModelAboutToBeReset: {
- root.routeSegments = null;
- }
-
onStatusChanged: {
if (status === RouteModel.Null) {
console.info(qLcMaps, "Route model idle");
diff --git a/apps/com.pelagicore.map/stores/NavigationStore.qml b/apps/com.pelagicore.map/stores/NavigationStore.qml
index 78ae0326..525dd2ce 100644
--- a/apps/com.pelagicore.map/stores/NavigationStore.qml
+++ b/apps/com.pelagicore.map/stores/NavigationStore.qml
@@ -48,6 +48,11 @@ QtObject {
mapZoomLevel: root.mapZoomLevel
mapTilt: root.mapTilt
mapCenter: root.mapCenter
+ onIsInitializedChanged: {
+ naviState.nextTurn = "";
+ naviState.nextTurnDistanceMeasuredIn = "";
+ naviState.nextTurnDistance = 0;
+ }
}
// input properties