diff --git a/src/Settings/AutoConnectSettings.cc b/src/Settings/AutoConnectSettings.cc index 702d8c834dc215877d910942040610c6118a284e..cb5a403b2ff340e5c0ffdf582536f76be1f892c9 100644 --- a/src/Settings/AutoConnectSettings.cc +++ b/src/Settings/AutoConnectSettings.cc @@ -60,6 +60,9 @@ Fact* AutoConnectSettings::autoConnectPixhawk(void) { if (!_autoConnectPixhawkFact) { _autoConnectPixhawkFact = _createSettingsFact(autoConnectPixhawkSettingsName); +#ifdef __ios__ + _autoConnectPixhawkFact->setVisible(false); +#endif } return _autoConnectPixhawkFact; @@ -69,6 +72,9 @@ Fact* AutoConnectSettings::autoConnectSiKRadio(void) { if (!_autoConnectSiKRadioFact) { _autoConnectSiKRadioFact = _createSettingsFact(autoConnectSiKRadioSettingsName); +#ifdef __ios__ + _autoConnectSiKRadioFact->setVisible(false); +#endif } return _autoConnectSiKRadioFact; @@ -78,6 +84,9 @@ Fact* AutoConnectSettings::autoConnectPX4Flow(void) { if (!_autoConnectPX4FlowFact) { _autoConnectPX4FlowFact = _createSettingsFact(autoConnectPX4FlowSettingsName); +#ifdef __ios__ + _autoConnectPX4FlowFact->setVisible(false); +#endif } return _autoConnectPX4FlowFact; @@ -87,6 +96,9 @@ Fact* AutoConnectSettings::autoConnectRTKGPS(void) { if (!_autoConnectRTKGPSFact) { _autoConnectRTKGPSFact = _createSettingsFact(autoConnectRTKGPSSettingsName); +#ifdef __ios__ + _autoConnectRTKGPSFact->setVisible(false); +#endif } return _autoConnectRTKGPSFact; @@ -96,6 +108,9 @@ Fact* AutoConnectSettings::autoConnectLibrePilot(void) { if (!_autoConnectLibrePilotFact) { _autoConnectLibrePilotFact = _createSettingsFact(autoConnectLibrePilotSettingsName); +#ifdef __ios__ + _autoConnectLibrePilotFact->setVisible(false); +#endif } return _autoConnectLibrePilotFact; @@ -105,6 +120,9 @@ Fact* AutoConnectSettings::autoConnectNmeaPort(void) { if (!_autoConnectNmeaPortFact) { _autoConnectNmeaPortFact = _createSettingsFact(autoConnectNmeaPortName); +#ifdef __ios__ + _autoConnectNmeaPortFact->setVisible(false); +#endif } return _autoConnectNmeaPortFact; @@ -114,6 +132,9 @@ Fact* AutoConnectSettings::autoConnectNmeaBaud(void) { if (!_autoConnectNmeaBaudFact) { _autoConnectNmeaBaudFact = _createSettingsFact(autoConnectNmeaBaudName); +#ifdef __ios__ + _autoConnectNmeaBaudFact->setVisible(false); +#endif } return _autoConnectNmeaBaudFact; diff --git a/src/ui/preferences/GeneralSettings.qml b/src/ui/preferences/GeneralSettings.qml index 5277fb370830a87082725ab394302e874389cdb1..666e72091ad46ecdc83ff1c3c91d90245ce360c9 100644 --- a/src/ui/preferences/GeneralSettings.qml +++ b/src/ui/preferences/GeneralSettings.qml @@ -485,7 +485,7 @@ QGCView { FactCheckBox { text: autoConnectRepeater.names[index] fact: modelData - visible: !ScreenTools.isiOS && modelData.visible + visible: modelData.visible } } }