mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
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:
parent
41a000254a
commit
199257fabd
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue