Allow clearing all flags regardless of constraints

This commit is contained in:
Kurt
2020-05-05 18:40:48 -07:00
parent e980e1d8c2
commit 478b8e29c5

View File

@@ -50,6 +50,13 @@ public void GiveAll(IReadOnlyList<ushort> indexes, bool value = true)
private void GiveEverything(IReadOnlyList<string> items, bool value = true)
{
if (!value)
{
for (ushort i = 0; i < CLB_Items.Items.Count; i++)
CLB_Items.SetItemChecked(i, false);
return;
}
var skip = GameLists.NoCheckReceived;
for (ushort i = 1; i < CLB_Items.Items.Count; i++)
{
@@ -57,7 +64,7 @@ private void GiveEverything(IReadOnlyList<string> items, bool value = true)
continue;
if (skip.Contains(i))
continue;
CLB_Items.SetItemChecked(i, value);
CLB_Items.SetItemChecked(i, true);
}
System.Media.SystemSounds.Asterisk.Play();
}