Skip to content

Commit

Permalink
binding done button to isValidGeometry property
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Oct 7, 2024
1 parent 3428de2 commit 16ba557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/qml/gps/MMMeasureDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MMDrawer {

property bool canCloseShape: mapCanvas.mapToolComponent?.mapTool?.canCloseShape ?? false
property bool canUndo: mapCanvas.mapToolComponent?.mapTool?.canUndo ?? false
property bool canFinalizeMeasurement: mapCanvas.mapToolComponent?.mapTool?.canFinalizeMeasurement ?? false
property bool isValidGeometry: mapCanvas.mapToolComponent?.mapTool?.isValidGeometry ?? false
property bool measurementFinalized: mapCanvas.mapToolComponent?.mapTool?.measurementFinalized ?? false

property string perimeter: mapCanvas.mapToolComponent?.mapTool?.perimeter ?? 0
Expand Down Expand Up @@ -110,7 +110,7 @@ MMDrawer {
type: MMButton.Types.Secondary
text: qsTr( "Done" )
iconSourceLeft: __style.doneCircleIcon
enabled: root.canFinalizeMeasurement
enabled: root.isValidGeometry
onClicked: root.mapCanvas.mapToolComponent.finalizeMeasurement( false )
}
}
Expand Down

1 comment on commit 16ba557

@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.10.668411 just submitted!

Please sign in to comment.