Skip to content

Commit

Permalink
Fix confusing 'snap to 45 degree' toast when opening QField
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 16, 2023
1 parent 6eebf52 commit d6e56b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/qml/qgismobileapp.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,8 @@ ApplicationWindow {

checkable: true
checked: snapToCommonAngleButton.isSnapToCommonAngleRelative
onCheckedChanged: {

onTriggered: {
snapToCommonAngleButton.isSnapToCommonAngleRelative = checked;
settings.setValue( "/QField/Digitizing/SnapToCommonAngleIsRelative", snapToCommonAngleButton.isSnapToCommonAngleRelative );
}
Expand All @@ -1495,9 +1496,10 @@ ApplicationWindow {
leftPadding: 10

checkable: true
enabled: !checked
checked: modelData === snapToCommonAngleButton.snapToCommonAngleDegrees
onCheckedChanged: {
enabled: modelData !== snapToCommonAngleButton.snapToCommonAngleDegrees

onTriggered: {
if ( !checked ) {
return;
}
Expand Down

1 comment on commit d6e56b0

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