Manually trigger form validation before loading SAV

Closes #2595
loading a new pkm template triggered the validation after the save
reference is swapped but the fields haven't been loaded

not gonna bother untangling things at this time
This commit is contained in:
Kurt 2019-12-21 15:33:20 -08:00
parent ce463d057a
commit ff61c66a56

View file

@ -735,6 +735,8 @@ namespace PKHeX.WinForms
sav.SetFileInfo(path);
if (!SanityCheckSAV(ref sav))
return true;
PKME_Tabs.Focus(); // flush any pending changes
StoreLegalSaveGameData(sav);
PKMConverter.Trainer = sav;
SpriteUtil.Initialize(sav); // refresh sprite generator