From 4e6a38189b0d6f7e98d5ec1b2f99eac104d6ac99 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 17 Sep 2021 19:20:24 -0700 Subject: [PATCH] Force validation differently for met location list changes Startup, load gen5 save file. Immediately load a pk3; met location is converted to Poketransfer When data is prepared, the validation fails and the selectedvalue is reset to 0 Future selectedvalue sets will work Just force validation when we change the list, so that future value sets work. Weird winforms quirk https://stackoverflow.com/questions/14624129/setting-combobox-droppeddown-false-resets-selected-item --- PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index ec4e59ea4..06800fa16 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -1278,7 +1278,7 @@ private void ReloadMetLocations(GameVersion version, int format) } else { - CB_GameOrigin.Focus(); // hacky validation forcing + ValidateChildren(); // hacky validation forcing } }