mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fix issue with card zoom following double-click activation
This commit is contained in:
@@ -138,7 +138,6 @@ public class FCardZoom extends FOverlay {
|
||||
|
||||
@Override
|
||||
public void hide() {
|
||||
if (isVisible()) {
|
||||
orderedCards = null; //reset fields when hidden
|
||||
controller = null;
|
||||
selectedIndex = -1;
|
||||
@@ -149,7 +148,6 @@ public class FCardZoom extends FOverlay {
|
||||
prompt.getBtnCancel().setEnabled(false);
|
||||
super.hide();
|
||||
}
|
||||
}
|
||||
|
||||
private void selectFirstOption() {
|
||||
selectOption(optionList.getItemAt(0));
|
||||
@@ -159,6 +157,7 @@ public class FCardZoom extends FOverlay {
|
||||
private void selectOption(Object option) {
|
||||
if (option == null ||
|
||||
controller.selectOption(orderedCards.get(selectedIndex), option) ||
|
||||
!isVisible() ||
|
||||
selectedIndex == orderedCards.size() - 1) {
|
||||
hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user