Skip to content

Commit

Permalink
code adjustments post review
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jun 14, 2024
1 parent a432de8 commit ec303a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/qml/map/MMMapController.qml
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,6 @@ Item {
map: mapCanvas
positionMarkerComponent: positionMarker
recordingMapTool.centeredToGPS: root.centeredToGPS
centerToGPSOnStartup: __appSettings.autolockPosition

activeFeature: root.state === "edit" ? internal.featurePairToEdit.feature : __inputUtils.emptyFeature()

Expand Down
9 changes: 4 additions & 5 deletions app/qml/map/MMRecordingTools.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Item {
required property MMPositionMarker positionMarkerComponent

property alias recordingMapTool: mapTool
property bool centerToGPSOnStartup: __appSettings.autolockPosition

property var activeFeature

Expand Down Expand Up @@ -316,15 +315,15 @@ Item {
}

Component.onCompleted: {
if ( root.centerToGPSOnStartup ) {
if ( __appSettings.autolockPosition ) {
// center to GPS
if ( gpsStateGroup.state === "unavailable" ) {
__notificationModel.addError( "GPS currently unavailable." );
__notificationModel.addError( "GPS currently unavailable." )
return;
}

root.map.mapSettings.centeredToGPS = true;
root.map.mapSettings.setCenter( mapPositionSource.mapPosition );
mapTool.centeredToGPS = true
root.map.mapSettings.setCenter( mapPositionSource.mapPosition )
}
}

Expand Down

1 comment on commit ec303a7

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.6.634111 just submitted!

Please sign in to comment.