mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
only show details for selected card if the table has focus
This commit is contained in:
@@ -217,7 +217,9 @@ public final class EditorTableModel<T extends InventoryItem> extends AbstractTab
|
||||
table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
|
||||
@Override
|
||||
public void valueChanged(final ListSelectionEvent arg0) {
|
||||
EditorTableModel.this.showSelectedCard(table);
|
||||
if (table.isFocusOwner()) {
|
||||
EditorTableModel.this.showSelectedCard(table);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user