Commit d6e52a55 authored by Bryant's avatar Bryant

Disable all UI for the joystick configuration when no joysticks are found.

parent 316620fd
......@@ -59,9 +59,12 @@ void JoystickWidget::initUI()
m_ui->joystickFrame->setEnabled(true);
}
}
// But if there're no joysticks, just disable everything.
else
{
m_ui->enableCheckBox->setEnabled(false);
m_ui->joystickNameComboBox->addItem(tr("No joysticks found. Connect and restart QGC to add one."));
m_ui->joystickNameComboBox->setEnabled(false);
}
// Add any missing buttons
......
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