Fix user data not removing entries

This commit is contained in:
KillzXGaming 2019-03-26 18:24:31 -04:00
parent e58e456c1a
commit 1e0ea5660e
2 changed files with 9 additions and 1 deletions

Binary file not shown.

View file

@ -310,7 +310,15 @@ namespace FirstPlugin
private void btnRemove_Click(object sender, EventArgs e)
{
if (listViewCustom1.SelectedIndices.Count > 0)
listViewCustom1.Items.RemoveAt(listViewCustom1.SelectedIndices[0]);
{
int index = listViewCustom1.SelectedIndices[0];
listViewCustom1.Items.RemoveAt(index);
if (userData != null)
userData.RemoveAt(index);
if (userDataNX != null)
userDataNX.RemoveAt(index);
}
}
private void listViewCustom1_DoubleClick(object sender, EventArgs e)