mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 14:25:20 -05:00
Add stringy filters to Database Search function
This commit is contained in:
@@ -226,7 +226,7 @@ private void processFolder(string[] files, List<StringInstruction> Filters, List
|
||||
b.ReportProgress(i);
|
||||
}
|
||||
}
|
||||
private static void screenStrings(IEnumerable<StringInstruction> il)
|
||||
public static void screenStrings(IEnumerable<StringInstruction> il)
|
||||
{
|
||||
foreach (var i in il.Where(i => !i.PropertyValue.All(char.IsDigit)))
|
||||
{
|
||||
|
||||
@@ -490,6 +490,7 @@ private void B_Search_Click(object sender, EventArgs e)
|
||||
if (filters.Any(z => string.IsNullOrWhiteSpace(z.PropertyValue)))
|
||||
{ Util.Error("Empty Filter Value detected."); return; }
|
||||
|
||||
BatchEditor.screenStrings(filters);
|
||||
res = res.Where(pkm => // Compare across all filters
|
||||
{
|
||||
foreach (var cmd in filters)
|
||||
|
||||
Reference in New Issue
Block a user