From 11bc9f064fd6a3fa71066e713d76aa0ddb3db19f Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 3 Sep 2019 18:44:35 -0700 Subject: [PATCH] Make slots visible after resetting Had removed the Visible=true from the inner UpdateSlot call in the refactor; place here. --- PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs index 48a344306..2e6802bc5 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/BoxEditor.cs @@ -158,10 +158,13 @@ public void ResetSlots() for (int i = 0; i < BoxSlotCount; i++) { var pb = SlotPictureBoxes[i]; - if (i < SAV.BoxSlotCount && index + i < SAV.SlotCount) - SlotUtil.UpdateSlot(pb, (SlotInfoBox)GetSlotData(pb), Editor[i], SAV, FlagIllegal); - else + if (i >= SAV.BoxSlotCount || index + i >= SAV.SlotCount) + { pb.Visible = false; + continue; + } + pb.Visible = true; + SlotUtil.UpdateSlot(pb, (SlotInfoBox) GetSlotData(pb), Editor[i], SAV, FlagIllegal); } if (M.Env.Slots.Publisher.Previous is SlotInfoBox b && b.Box == CurrentBox)