mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48: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() {
|
table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void valueChanged(final ListSelectionEvent arg0) {
|
public void valueChanged(final ListSelectionEvent arg0) {
|
||||||
EditorTableModel.this.showSelectedCard(table);
|
if (table.isFocusOwner()) {
|
||||||
|
EditorTableModel.this.showSelectedCard(table);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user