Skip to content

Commit

Permalink
Move positioning activation around to allow for project load tracker …
Browse files Browse the repository at this point in the history
…launch
  • Loading branch information
nirvn committed Feb 29, 2024
1 parent 2914c9b commit 4cc1400
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/qml/LayerTreeItemProperties.qml
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,6 @@ Popup {
trackingModel.stopTracker(layer);
displayToast(qsTr('Track on layer %1 stopped').arg(layer.name))
} else {
if (!positionSource.active) {
positioningSettings.positioningActivated = true
}

var tracker;
var idx = projectInfo.restoreTracker(layer)
if (idx.valid) {
Expand Down
9 changes: 9 additions & 0 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,15 @@ ApplicationWindow {
id: trackings
model: trackingModel

onCountChanged: {
if (count > 0) {
// Start positioning if not yet active
if (!positionSource.active) {
positioningSettings.positioningActivated = true
}
}
}

TrackingSession {}
}

Expand Down

0 comments on commit 4cc1400

Please sign in to comment.