CardSetFilter and DeckSetFilter now includes the allowReprints option when instantiating (for edit) the DialogChooseSets so UI updates accordingly.

This commit is contained in:
leriomaggio
2021-07-04 17:23:46 +01:00
parent 8f01f56a1e
commit ef18dac22c
2 changed files with 4 additions and 3 deletions

View File

@@ -50,9 +50,9 @@ public class CardSetFilter extends CardFormatFilter {
}
public void edit(final ItemManager<? super PaperCard> itemManager) {
final DialogChooseSets dialog = new DialogChooseSets(this.sets, null, true);
final DialogChooseSets dialog = new DialogChooseSets(this.sets, null, true,
this.allowReprints);
final CardSetFilter itemFilter = this;
dialog.setWantReprintsCB(allowReprints);
dialog.setOkCallback(new Runnable() {
@Override

View File

@@ -47,7 +47,8 @@ public class DeckSetFilter extends DeckFormatFilter {
}
public void edit() {
final DialogChooseSets dialog = new DialogChooseSets(this.sets, null, true);
final DialogChooseSets dialog = new DialogChooseSets(this.sets, null, true,
this.allowReprints);
dialog.setOkCallback(new Runnable() {
@Override
public void run() {