Use common name if preferences not SwingPreferences

This commit is contained in:
SiboVG 2022-10-13 22:12:16 +02:00
parent 9d8f5a6b38
commit d06396ac2e

View File

@ -35,6 +35,9 @@ enum ThrustCurveMotorColumns {
NAME("TCurveMotorCol.NAME") {
@Override
public String getValue(ThrustCurveMotorSet m) {
if (!(Application.getPreferences() instanceof SwingPreferences)) {
return m.getCommonName();
}
if (((SwingPreferences) Application.getPreferences()).getMotorNameColumn()) {
return m.getDesignation();
} else {