[fixes #1088] Trigger select after new/copy motor config

This commit is contained in:
Sibo Van Gool 2022-01-30 01:19:09 +01:00
parent 4332732ade
commit 42a0e4b389

View File

@ -81,6 +81,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
motorConfigurationPanel.table.setRowSelectionInterval(lastRow, lastRow);
motorConfigurationPanel.table.setColumnSelectionInterval(lastCol, lastCol);
configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE); // Trigger select
}
});
@ -113,6 +114,7 @@ public class FlightConfigurationPanel extends JPanel implements StateChangeListe
public void actionPerformed(ActionEvent e) {
addOrCopyConfiguration(true);
configurationChanged(ComponentChangeEvent.MOTOR_CHANGE);
configurationChanged(ComponentChangeEvent.NONFUNCTIONAL_CHANGE); // Trigger select
}
});
this.add(copyConfButton, "wrap");