Minor tweak

This commit is contained in:
Travis Nickles 2017-08-22 21:13:01 -05:00
parent 2ea4967486
commit 123e6a20c0

View File

@ -1670,6 +1670,7 @@ namespace DS4Windows
public void UpdateLists() public void UpdateLists()
{ {
lBControls.BeginUpdate();
lBControls.Items[0] = "Cross : " + UpdateButtonList(bnCross); lBControls.Items[0] = "Cross : " + UpdateButtonList(bnCross);
lBControls.Items[1] = "Circle : " + UpdateButtonList(bnCircle); lBControls.Items[1] = "Circle : " + UpdateButtonList(bnCircle);
lBControls.Items[2] = "Square : " + UpdateButtonList(bnSquare); lBControls.Items[2] = "Square : " + UpdateButtonList(bnSquare);
@ -1716,6 +1717,8 @@ namespace DS4Windows
lbSwipeRight.Text = UpdateButtonList(bnSwipeRight); lbSwipeRight.Text = UpdateButtonList(bnSwipeRight);
} }
lBControls.EndUpdate();
lbGyroXN.Text = UpdateButtonList(bnGyroXN); lbGyroXN.Text = UpdateButtonList(bnGyroXN);
lbGyroZN.Text = UpdateButtonList(bnGyroZN); lbGyroZN.Text = UpdateButtonList(bnGyroZN);
lbGyroZP.Text = UpdateButtonList(bnGyroZP); lbGyroZP.Text = UpdateButtonList(bnGyroZP);
@ -2205,10 +2208,12 @@ namespace DS4Windows
} }
else if (rBTPMouse.Checked && lBControls.Items.Count > 33) else if (rBTPMouse.Checked && lBControls.Items.Count > 33)
{ {
lBControls.BeginUpdate();
lBControls.Items.RemoveAt(36); lBControls.Items.RemoveAt(36);
lBControls.Items.RemoveAt(35); lBControls.Items.RemoveAt(35);
lBControls.Items.RemoveAt(34); lBControls.Items.RemoveAt(34);
lBControls.Items.RemoveAt(33); lBControls.Items.RemoveAt(33);
lBControls.EndUpdate();
} }
} }