Re-add selectionlength

only use it when repopulating move legality
skip repopulation when clicking moves or met location since it's updated
at the end of the respective method
This commit is contained in:
Kurt 2017-03-05 20:00:27 -08:00
parent 41a000254a
commit 199257fabd

View file

@ -1912,7 +1912,7 @@ namespace PKHeX.WinForms
}
private void clickMoves(object sender, EventArgs e)
{
updateLegality();
updateLegality(skipMoveRepop:true);
if (sender == GB_CurrentMoves)
{
bool random = ModifierKeys == Keys.Control;
@ -1969,7 +1969,7 @@ namespace PKHeX.WinForms
return;
pkm = preparePKM();
updateLegality();
updateLegality(skipMoveRepop:true);
if (Legality.Valid)
return;
@ -2950,6 +2950,7 @@ namespace PKHeX.WinForms
var index = WinFormsUtil.getIndex(c);
c.DataSource = new BindingSource(moveList, null);
c.SelectedValue = index;
c.SelectionLength = 0; // flicker hack
}
fieldsLoaded |= tmp;
}