From 0a2066cdb82f5ad91fc54f04d55d22e3380f0b51 Mon Sep 17 00:00:00 2001 From: Arseniy Movshev Date: Wed, 18 Jan 2023 20:34:58 +0000 Subject: Add a JSON compatible default value to make waypoints work on fresh install --- src/MainMapView.qml | 2 +- src/SetPointPage.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MainMapView.qml b/src/MainMapView.qml index 584fcfd..89b878d 100644 --- a/src/MainMapView.qml +++ b/src/MainMapView.qml @@ -29,7 +29,7 @@ Item { ConfigurationValue { id: waypointSource key: "/map/waypointList" - defaultValue: "" + defaultValue: "[]" onValueChanged: { mapView.updateWaypoints() console.log("value changed") diff --git a/src/SetPointPage.qml b/src/SetPointPage.qml index 234edf0..9501db4 100644 --- a/src/SetPointPage.qml +++ b/src/SetPointPage.qml @@ -12,7 +12,7 @@ Item { ConfigurationValue { id: waypointList key: "/map/waypointList" - defaultValue: "" + defaultValue: "[]" Component.onCompleted: { var waypointArray = JSON.parse(waypointList.value) if (editMode) { -- cgit v1.2.3-70-g09d2