[fixes #1088] Open motor selection upon new/copy config
This commit is contained in:
parent
42a0e4b389
commit
ce8be05865
@ -82,6 +82,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
|
||||
motorConfigurationPanel.table.setColumnSelectionInterval(lastCol, lastCol);
|
||||
configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
|
||||
configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE); // Trigger select
|
||||
motorConfigurationPanel.selectMotor();
|
||||
}
|
||||
|
||||
});
|
||||
@ -115,6 +116,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
|
||||
addOrCopyConfiguration(true);
|
||||
configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
|
||||
configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE); // Trigger select
|
||||
motorConfigurationPanel.selectMotor();
|
||||
}
|
||||
});
|
||||
this.add(copyConfButton, "wrap");
|
||||
|
@ -204,7 +204,7 @@ public class MotorConfigurationPanel extends FlightConfigurablePanel<MotorMount>
|
||||
}
|
||||
}
|
||||
|
||||
private void selectMotor() {
|
||||
public void selectMotor() {
|
||||
MotorMount curMount = getSelectedComponent();
|
||||
FlightConfigurationId fcid= getSelectedConfigurationId();
|
||||
if ( (null == fcid )||( null == curMount )){
|
||||
|
Loading…
x
Reference in New Issue
Block a user