Skip to content

Commit

Permalink
persist connection mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Nov 21, 2023
1 parent 64bcd8e commit 583e30a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qml/ui/configpopup/connect/PaneConnectionMode.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ Rectangle{
ListElement { text: "MANUAL UDP" }
ListElement { text: "MANUAL TCP" }
}
onCurrentIndexChanged: {
onActivated: {
if(currentIndex==0 || currentIndex==1 || currentIndex==2){
_mavlinkTelemetry.change_telemetry_connection_mode(currentIndex);
if(settings.qopenhd_mavlink_connection_mode!=currentIndex){
_mavlinkTelemetry.change_telemetry_connection_mode(currentIndex);
settings.qopenhd_mavlink_connection_mode=currentIndex;
}
}
}
currentIndex: settings.qopenhd_mavlink_connection_mode
Expand Down

0 comments on commit 583e30a

Please sign in to comment.