mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
REVONANO: Minor bug fix with a combobox not hiding properly.
This commit is contained in:
parent
c60a5a5e94
commit
5e5a0e503f
@ -301,10 +301,13 @@ void ConfigRevoNanoHWWidget::rcvrPortChanged(int index)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(index);
|
Q_UNUSED(index);
|
||||||
|
|
||||||
|
m_ui->lblRcvrSpeed->setVisible(true);
|
||||||
|
m_ui->cbRcvrTelemSpeed->setVisible(false);
|
||||||
|
m_ui->cbRcvrComSpeed->setVisible(false);
|
||||||
|
|
||||||
switch (getComboboxSelectedOption(m_ui->cbRcvr)) {
|
switch (getComboboxSelectedOption(m_ui->cbRcvr)) {
|
||||||
case HwSettings::RM_RCVRPORT_TELEMETRY:
|
case HwSettings::RM_RCVRPORT_TELEMETRY:
|
||||||
case HwSettings::RM_RCVRPORT_PPMTELEMETRY:
|
case HwSettings::RM_RCVRPORT_PPMTELEMETRY:
|
||||||
m_ui->lblRcvrSpeed->setVisible(true);
|
|
||||||
m_ui->cbRcvrTelemSpeed->setVisible(true);
|
m_ui->cbRcvrTelemSpeed->setVisible(true);
|
||||||
|
|
||||||
if (isComboboxOptionSelected(m_ui->cbFlexi, HwSettings::RM_FLEXIPORT_TELEMETRY)) {
|
if (isComboboxOptionSelected(m_ui->cbFlexi, HwSettings::RM_FLEXIPORT_TELEMETRY)) {
|
||||||
@ -315,7 +318,6 @@ void ConfigRevoNanoHWWidget::rcvrPortChanged(int index)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HwSettings::RM_RCVRPORT_COMBRIDGE:
|
case HwSettings::RM_RCVRPORT_COMBRIDGE:
|
||||||
m_ui->lblRcvrSpeed->setVisible(true);
|
|
||||||
m_ui->cbRcvrComSpeed->setVisible(true);
|
m_ui->cbRcvrComSpeed->setVisible(true);
|
||||||
if (isComboboxOptionSelected(m_ui->cbFlexi, HwSettings::RM_FLEXIPORT_COMBRIDGE)) {
|
if (isComboboxOptionSelected(m_ui->cbFlexi, HwSettings::RM_FLEXIPORT_COMBRIDGE)) {
|
||||||
setComboboxSelectedOption(m_ui->cbFlexi, HwSettings::RM_FLEXIPORT_DISABLED);
|
setComboboxSelectedOption(m_ui->cbFlexi, HwSettings::RM_FLEXIPORT_DISABLED);
|
||||||
@ -326,8 +328,6 @@ void ConfigRevoNanoHWWidget::rcvrPortChanged(int index)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_ui->lblRcvrSpeed->setVisible(false);
|
m_ui->lblRcvrSpeed->setVisible(false);
|
||||||
m_ui->cbRcvrTelemSpeed->setVisible(false);
|
|
||||||
m_ui->cbRcvrComSpeed->setVisible(false);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user