Merge remote-tracking branch 'core/master' into AdventureModePort

This commit is contained in:
Anthony Calosa
2022-02-09 12:08:25 +08:00
3 changed files with 9 additions and 1 deletions

View File

@@ -236,6 +236,8 @@ public class FDeckChooser extends FScreen {
@Override
public void onActivate() {
if (cmbDeckTypes != null && cmbDeckTypes.getDropDownisVisible())
cmbDeckTypes.hideDropDown();
String selectedDeck = "";
int index = 0;
if (lstDecks.getSelectedItem() != null) {

View File

@@ -188,6 +188,13 @@ public class FComboBox<T> extends FTextField implements IComboBox<T> {
public FEventHandler getDropDownChangeHandler() {
return dropDownChangeHandler;
}
public boolean getDropDownisVisible() {
return dropDown != null && dropDown.isVisible();
}
public void hideDropDown() {
if (dropDown != null)
dropDown.hide();
}
public void setDropDownChangeHandler(FEventHandler changedHandler0) {
dropDownChangeHandler = changedHandler0;
}