mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-25 14:00:21 +00:00
Fix user data not removing entries
This commit is contained in:
parent
e58e456c1a
commit
1e0ea5660e
2 changed files with 9 additions and 1 deletions
Binary file not shown.
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue