Fix #2122 on next branch
This commit is contained in:
@@ -277,7 +277,7 @@ void ModulePanel::update()
|
|||||||
else {
|
else {
|
||||||
mask = 0;
|
mask = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->failsafesLayoutLabel->setVisible(mask & MASK_FAILSAFES);
|
ui->failsafesLayoutLabel->setVisible(mask & MASK_FAILSAFES);
|
||||||
ui->failsafesFrame->setVisible(mask & MASK_FAILSAFES);
|
ui->failsafesFrame->setVisible(mask & MASK_FAILSAFES);
|
||||||
}
|
}
|
||||||
@@ -377,6 +377,8 @@ SetupPanel::SetupPanel(QWidget *parent, ModelData & model, GeneralSettings & gen
|
|||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QRegExp rx(CHAR_FOR_NAMES_REGEX);
|
||||||
|
ui->name->setValidator(new QRegExpValidator(rx, this));
|
||||||
ui->name->setMaxLength(IS_TARANIS(board) ? 12 : 10);
|
ui->name->setMaxLength(IS_TARANIS(board) ? 12 : 10);
|
||||||
|
|
||||||
if (firmware->getCapability(ModelImage)) {
|
if (firmware->getCapability(ModelImage)) {
|
||||||
@@ -440,7 +442,7 @@ SetupPanel::SetupPanel(QWidget *parent, ModelData & model, GeneralSettings & gen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!firmware->getCapability(HasDisplayText)) {
|
if (!firmware->getCapability(HasDisplayText)) {
|
||||||
ui->displayText->hide();
|
ui->displayText->hide();
|
||||||
}
|
}
|
||||||
@@ -710,7 +712,7 @@ void SetupPanel::update()
|
|||||||
|
|
||||||
updateBeepCenter();
|
updateBeepCenter();
|
||||||
updateStartupSwitches();
|
updateStartupSwitches();
|
||||||
|
|
||||||
if(IS_TARANIS(GetEepromInterface()->getBoard())) {
|
if(IS_TARANIS(GetEepromInterface()->getBoard())) {
|
||||||
updatePotWarnings();
|
updatePotWarnings();
|
||||||
}
|
}
|
||||||
@@ -782,7 +784,7 @@ void SetupPanel::startupSwitchToggled(bool checked)
|
|||||||
{
|
{
|
||||||
if (!lock) {
|
if (!lock) {
|
||||||
int index = sender()->property("index").toInt();
|
int index = sender()->property("index").toInt();
|
||||||
|
|
||||||
if (checked)
|
if (checked)
|
||||||
model->switchWarningEnable &= ~(1 << index);
|
model->switchWarningEnable &= ~(1 << index);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user