Skip to content

Commit

Permalink
Rest feature form tabs on confirmed or cancelled.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenD98 authored and nirvn committed Jul 12, 2024
1 parent 14be162 commit bbfa725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qml/FeatureForm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Page {
}
}

function resetTabs() {
tabRow.currentIndex = 0;
}

clip: true
states: [
State {
Expand Down
2 changes: 2 additions & 0 deletions src/qml/OverlayFeatureFormDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Drawer {
overlayFeatureForm.isSaved = false; //reset
}
digitizingToolbar.digitizingLogger.writeCoordinates();
resetTabs();
}

onCancelled: {
Expand All @@ -115,6 +116,7 @@ Drawer {
overlayFeatureForm.isSaved = false; //reset
}
digitizingToolbar.digitizingLogger.clearCoordinates();
resetTabs();
}

Keys.onReleased: event => {
Expand Down

1 comment on commit bbfa725

@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.

Please sign in to comment.