diff --git a/qml/ui/configpopup/connect/PaneConnectionMode.qml b/qml/ui/configpopup/connect/PaneConnectionMode.qml index efccc7b05..0d4920b92 100644 --- a/qml/ui/configpopup/connect/PaneConnectionMode.qml +++ b/qml/ui/configpopup/connect/PaneConnectionMode.qml @@ -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