mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Prevent crash when pressing Enter or Space on ListChooser
This commit is contained in:
@@ -134,7 +134,7 @@ public class ListChooser<T> extends FContainer {
|
|||||||
}
|
}
|
||||||
setHeight(Math.min(ITEM_HEIGHT * list.size(), FOptionPane.getMaxDisplayObjHeight()));
|
setHeight(Math.min(ITEM_HEIGHT * list.size(), FOptionPane.getMaxDisplayObjHeight()));
|
||||||
|
|
||||||
optionPane = new FOptionPane(null, title, null, this, options, minChoices < 0 ? 0 : -1, new Callback<Integer>() {
|
optionPane = new FOptionPane(null, title, null, this, options, 0, new Callback<Integer>() {
|
||||||
@Override
|
@Override
|
||||||
public void run(Integer result) {
|
public void run(Integer result) {
|
||||||
called = false;
|
called = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user