Impl AttackModifier Plugin Commands (#140, #141)

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

No files matched your search

+7 -4
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();
}
}