mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Allow canceling when selecting values
This commit is contained in:
@@ -588,7 +588,11 @@ public class AdvancedSearch {
|
|||||||
if (operator == null) { return editFilter; }
|
if (operator == null) { return editFilter; }
|
||||||
|
|
||||||
final String message = option.name + " " + operator.caption + " ?";
|
final String message = option.name + " " + operator.caption + " ?";
|
||||||
return (Filter<T>)option.evaluator.createFilter(message, option, operator);
|
Filter<T> filter = (Filter<T>)option.evaluator.createFilter(message, option, operator);
|
||||||
|
if (filter == null) {
|
||||||
|
filter = editFilter;
|
||||||
|
}
|
||||||
|
return filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Filter<T extends InventoryItem> {
|
public static class Filter<T extends InventoryItem> {
|
||||||
|
|||||||
Reference in New Issue
Block a user