Impl AttackModifier Plugin Commands (#140, #141)

Update version to v1.7.3
Update CommandVersion to v1.4.3
This commit is contained in:
2022-11-06 20:15:20 +08:00
parent cd25afe0c7
commit 42e5c94601
7 changed files with 8799 additions and 6591 deletions

View File

@@ -32,10 +32,13 @@ namespace GrasscutterTools.Utils
filter = filter.Trim();
listBox.BeginUpdate();
listBox.Items.Clear();
if (string.IsNullOrEmpty(filter))
listBox.Items.AddRange(source);
else
listBox.Items.AddRange(source.Where(n => n.Contains(filter)).ToArray());
if (source != null && source.Length > 0)
{
if (string.IsNullOrEmpty(filter))
listBox.Items.AddRange(source);
else
listBox.Items.AddRange(source.Where(n => n.Contains(filter)).ToArray());
}
listBox.EndUpdate();
}
}