don't search on options that should be hidden
This commit is contained in:
parent
a027330be3
commit
28f5cfe5c8
|
@ -70,6 +70,9 @@ public class Option {
|
||||||
* @return true if this option does need to be filtered
|
* @return true if this option does need to be filtered
|
||||||
*/
|
*/
|
||||||
public boolean filter(String searchString) {
|
public boolean filter(String searchString) {
|
||||||
|
if (!showCondition()) {
|
||||||
|
return filtered = true;
|
||||||
|
}
|
||||||
if (searchString == null || searchString.length() == 0) {
|
if (searchString == null || searchString.length() == 0) {
|
||||||
filtered = false;
|
filtered = false;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user