Don't update flight config on multi-selection in table

This commit is contained in:
SiboVG 2022-08-01 02:24:23 +02:00
parent 555ed21996
commit bc8a8eb0d0

View File

@ -149,7 +149,12 @@ public abstract class FlightConfigurablePanel<T extends FlightConfigurableCompon
if ( e.getValueIsAdjusting() ) {
return;
}
// Don't update the flight configuration for multi-selections
if (table.getSelectionModel().getSelectedItemsCount() > 1) {
return;
}
/* Find the selected row and set it as the current selected configuration
* for the rocket. This will propagate the event to ensure that other
* pieces of the UI are updated and match the table selection.