From ff61c66a56fc0c93f4cbd01a127ff3e830193433 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 21 Dec 2019 15:33:20 -0800 Subject: [PATCH] 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 --- PKHeX.WinForms/MainWindow/Main.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKHeX.WinForms/MainWindow/Main.cs b/PKHeX.WinForms/MainWindow/Main.cs index a362f9dad..4c19e5ca4 100644 --- a/PKHeX.WinForms/MainWindow/Main.cs +++ b/PKHeX.WinForms/MainWindow/Main.cs @@ -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