Minor tweak to contribution that .NET wanted

Related to #406
This commit is contained in:
Travis Nickles 2018-09-29 04:18:25 -05:00
parent c324434a05
commit 9b36f73ed5

View File

@ -1225,11 +1225,8 @@ namespace DS4Windows
private void lVMacros_MouseDoubleClick(object sender, MouseEventArgs e) private void lVMacros_MouseDoubleClick(object sender, MouseEventArgs e)
{ {
if (lVMacros.SelectedIndices.Count == 0) if (lVMacros.SelectedIndices.Count != 0)
{ {
return;
}
if (lVMacros.SelectedItems[0].ImageIndex == 2) if (lVMacros.SelectedItems[0].ImageIndex == 2)
{ {
TextBox tb = new TextBox(); TextBox tb = new TextBox();
@ -1293,6 +1290,7 @@ namespace DS4Windows
tb1.Focus(); tb1.Focus();
} }
} }
}
void tb_TextChanged(object sender, EventArgs e) void tb_TextChanged(object sender, EventArgs e)
{ {