mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add log if filter field doesn't match anything
This commit is contained in:
@@ -112,25 +112,6 @@ namespace SabreTools.Filtering
|
||||
|
||||
#region Filter Population
|
||||
|
||||
/// <summary>
|
||||
/// Populate the filters object using a set of key:value filters
|
||||
/// </summary>
|
||||
/// <param name="filters">List of key:value where ~key/!key is negated</param>
|
||||
public override void PopulateFromList(List<string> filters)
|
||||
{
|
||||
foreach (string filterPair in filters)
|
||||
{
|
||||
(string field, string value, bool negate) = ProcessFilterPair(filterPair);
|
||||
|
||||
// If we don't even have a possible filter pair
|
||||
if (field == null && value == null)
|
||||
continue;
|
||||
|
||||
MachineField filterField = field.AsMachineField();
|
||||
SetFilter(filterField, value, negate);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set multiple filters from key
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user