mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-17 00:16:20 +01:00
Fixed out of range while checking the selected index
This commit is contained in:
parent
18335e06c3
commit
55764919db
@ -1225,8 +1225,11 @@ namespace DS4Windows
|
||||
|
||||
private void lVMacros_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (lVMacros.SelectedIndices[0] >= 0)
|
||||
if (lVMacros.SelectedIndices.Count == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (lVMacros.SelectedItems[0].ImageIndex == 2)
|
||||
{
|
||||
TextBox tb = new TextBox();
|
||||
@ -1290,7 +1293,6 @@ namespace DS4Windows
|
||||
tb1.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void tb_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user