mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-1582 Set text to Next/Skip for Flightmode and Aux channels
This commit is contained in:
parent
cc1785d6a2
commit
bf9d14a8a7
@ -591,6 +591,7 @@ void ConfigInputWidget::wzBack()
|
||||
void ConfigInputWidget::wizardSetUpStep(enum wizardSteps step)
|
||||
{
|
||||
ui->wzText2->clear();
|
||||
ui->wzNext->setText(tr("Next"));
|
||||
|
||||
switch (step) {
|
||||
case wizardWelcome:
|
||||
@ -863,13 +864,13 @@ void ConfigInputWidget::setChannel(int newChan)
|
||||
if (manualSettingsObj->getField("ChannelGroups")->getElementNames().at(newChan).contains("Accessory") ||
|
||||
manualSettingsObj->getField("ChannelGroups")->getElementNames().at(newChan).contains("FlightMode")) {
|
||||
ui->wzNext->setEnabled(true);
|
||||
ui->wzNext->setText(tr("Next/Skip"));
|
||||
ui->wzText->setText(ui->wzText->text() + tr(" Alternatively, click Next to skip this channel."));
|
||||
} else {
|
||||
ui->wzNext->setEnabled(false);
|
||||
}
|
||||
|
||||
setMoveFromCommand(newChan);
|
||||
|
||||
currentChannelNum = newChan;
|
||||
channelDetected = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user