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") {
|
||||
@Override
|
||||
public String getValue(ThrustCurveMotorSet m) {
|
||||
if (!(Application.getPreferences() instanceof SwingPreferences)) {
|
||||
return m.getCommonName();
|
||||
}
|
||||
if (((SwingPreferences) Application.getPreferences()).getMotorNameColumn()) {
|
||||
return m.getDesignation();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user