Skip to content

Commit

Permalink
Only show topological editing button when the current layer is a line…
Browse files Browse the repository at this point in the history
… or a polygon
  • Loading branch information
nirvn committed Apr 18, 2020
1 parent 5f1b152 commit 0e9225a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ ApplicationWindow {
Button {
id: topologyButton
round: true
visible: stateMachine.state === "digitize"
visible: stateMachine.state === "digitize" && ( dashBoard.currentLayer.geometryType() === QgsWkbTypes.PolygonGeometry || dashBoard.currentLayer.geometryType() === QgsWkbTypes.LineGeometry )
state: qgisProject.topologicalEditing ? "On" : "Off"
iconSource: Theme.getThemeIcon( "ic_topology_white_24dp" )

Expand Down

1 comment on commit 0e9225a

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

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

Uploaded test apks for

Please sign in to comment.