Use common name if preferences not SwingPreferences
This commit is contained in:
parent
9d8f5a6b38
commit
d06396ac2e
@ -35,6 +35,9 @@ enum ThrustCurveMotorColumns {
|
|||||||
NAME("TCurveMotorCol.NAME") {
|
NAME("TCurveMotorCol.NAME") {
|
||||||
@Override
|
@Override
|
||||||
public String getValue(ThrustCurveMotorSet m) {
|
public String getValue(ThrustCurveMotorSet m) {
|
||||||
|
if (!(Application.getPreferences() instanceof SwingPreferences)) {
|
||||||
|
return m.getCommonName();
|
||||||
|
}
|
||||||
if (((SwingPreferences) Application.getPreferences()).getMotorNameColumn()) {
|
if (((SwingPreferences) Application.getPreferences()).getMotorNameColumn()) {
|
||||||
return m.getDesignation();
|
return m.getDesignation();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user