Unverified Commit b6dc73b1 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6011 from DonLakeFlyer/iOSAutoConnect

Fix AutoConnect settings for iOS
parents 748b0531 f6a1cb6f
......@@ -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;
......
......@@ -485,7 +485,7 @@ QGCView {
FactCheckBox {
text: autoConnectRepeater.names[index]
fact: modelData
visible: !ScreenTools.isiOS && modelData.visible
visible: modelData.visible
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment