mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-09 14:46:05 -05:00
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:
@@ -735,6 +735,8 @@ private bool OpenSAV(SaveFile sav, string path)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user