Merge pull request #1590 from SiboVG/issue-1555
[#1555] Don't open config dialog for duplicate config
This commit is contained in:
commit
1c38aa4dd4
@ -159,6 +159,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
|
|||||||
addOrDuplicateConfiguration(duplicate);
|
addOrDuplicateConfiguration(duplicate);
|
||||||
configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
|
configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
|
||||||
stateChanged(null);
|
stateChanged(null);
|
||||||
|
if (!duplicate) {
|
||||||
switch (tabs.getSelectedIndex()) {
|
switch (tabs.getSelectedIndex()) {
|
||||||
case MOTOR_TAB_INDEX:
|
case MOTOR_TAB_INDEX:
|
||||||
motorConfigurationPanel.selectMotor();
|
motorConfigurationPanel.selectMotor();
|
||||||
@ -170,6 +171,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
|
|||||||
separationConfigurationPanel.selectSeparation();
|
separationConfigurationPanel.selectSeparation();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE); // Trigger select
|
configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE); // Trigger select
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user