mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-27 11:52:24 -05:00
Add optional focusing when loading to tabs
This commit is contained in:
@@ -919,7 +919,7 @@ private void InitializeLanguage()
|
||||
}
|
||||
}
|
||||
}
|
||||
public void populateFields(byte[] data)
|
||||
public void populateFields(byte[] data, bool focus = true)
|
||||
{
|
||||
pk6 = new PK6(data);
|
||||
if (init & !PKX.verifychk(pk6.Data))
|
||||
@@ -928,7 +928,8 @@ public void populateFields(byte[] data)
|
||||
// Reset a little.
|
||||
init = false;
|
||||
CAL_EggDate.Value = new DateTime(2000, 01, 01);
|
||||
Tab_Main.Focus();
|
||||
if (focus)
|
||||
Tab_Main.Focus();
|
||||
|
||||
// Do first
|
||||
pk6.Stat_Level = PKX.getLevel(pk6.Species, pk6.EXP);
|
||||
|
||||
Reference in New Issue
Block a user