diff options
author | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-18 20:34:58 +0000 |
---|---|---|
committer | Arseniy Movshev <dodoradio@outlook.com> | 2023-01-18 20:34:58 +0000 |
commit | 0a2066cdb82f5ad91fc54f04d55d22e3380f0b51 (patch) | |
tree | f3885f05ff4cd3e195d39d5d09ff52f489546a7c /src | |
parent | d78ce0b466b212bff3bfd256ebf1c0c70d5c4b55 (diff) |
Add a JSON compatible default value to make waypoints work on fresh install
Diffstat (limited to 'src')
-rw-r--r-- | src/MainMapView.qml | 2 | ||||
-rw-r--r-- | 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) { |