fix(cpn): QoL tweaks to joystick preferences (#3105)

* Add preference option to Companion to disable the 'Cannot open joystick, joystick disabled' popup warning when starting the simulator.

* Don't erase joystick settings if user opens preferences dialog while joystick is not connected.
Remove reference to "Ubuntu" font family for 'Radio Type' label in preferences dialog (generates warning on MacOS).
This commit is contained in:
philmoz
2023-03-17 12:09:38 +10:00
committed by GitHub
parent 0af86f657e
commit 9a898533d1
4 changed files with 18 additions and 6 deletions
+2 -1
View File
@@ -691,7 +691,8 @@ void SimulatorWidget::setupJoysticks()
joysticksEnabled = true;
}
else {
QMessageBox::critical(this, CPN_STR_TTL_WARNING, tr("Cannot open joystick, joystick disabled"));
if (!g.disableJoystickWarning())
QMessageBox::critical(this, CPN_STR_TTL_WARNING, tr("Cannot open joystick, joystick disabled"));
}
}
else if (joystick) {