From f836a3dddbcc6ae42e5ca92b2e5b657b8ef45182 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 16 Nov 2019 14:45:21 -0800 Subject: [PATCH] Fix Daycare slot display was redirecting to party; party was removed all that remains in the slot list the SAVEditor manages is the two daycare slots. Maybe it'll be better to have a popup form in the future, that way multiple daycares can be shown as appropriate. Closes #2433 --- PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs index 0608e4a89..2ef1a6a2a 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs @@ -69,10 +69,8 @@ public SAVEditor() L_SlotOccupied = new[] { L_DC1, L_DC2 }; TB_SlotEXP = new[] { TB_Daycare1XP, TB_Daycare2XP }; L_SlotEXP = new[] { L_XP1, L_XP2 }; - SlotPictureBoxes = new[] - { - dcpkx1, dcpkx2 - }; + SlotPictureBoxes = new[] { dcpkx1, dcpkx2 }; + Tab_Box.ContextMenuStrip = SortMenu = new BoxMenuStrip(this); M = new SlotChangeManager(this) {Env = EditEnv}; Box.Setup(M); @@ -204,9 +202,6 @@ public ISlotInfo GetSlotData(PictureBox view) public ISlotInfo GetSlotData(int index) { - if (index < 6) - return new SlotInfoParty(index); - var ofs = GetSlotOffset(index); return new SlotInfoMisc(SAV, index, ofs); }