Skip to content

Commit

Permalink
Make preflight checklist manual buttons toggleable
Browse files Browse the repository at this point in the history
Made it possible to set manual checklist buttons back to the pending
state, so that in case of an accidental click, the check can be undone
without resetting the entire checklist and having to go through it
again.
  • Loading branch information
rubenp02 committed Dec 16, 2024
1 parent 3e5fb5e commit 87eebaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QmlControls/PreFlightCheckButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ QGCButton {
_telemetryState = _statePassed
return
}
if (manualText !== "" && _manualState !== _statePassed) {
if (manualText !== "") {
// User is confirming a manual check
_manualState = _statePassed
_manualState = (_manualState === _statePassed) ? _statePending : _statePassed
}
}

Expand Down

0 comments on commit 87eebaa

Please sign in to comment.