Make slots visible after resetting

Had removed the Visible=true from the inner UpdateSlot call in the
refactor; place here.
This commit is contained in:
Kurt
2019-09-03 18:44:35 -07:00
parent edf36e8a34
commit 11bc9f064f

View File

@@ -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)