Skip to content

Commit 3d73327

Browse files
author
LocalIdentity
committed
Fix Imbued supports not being reset on socket delete or wipe
1 parent 7536d38 commit 3d73327

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/Classes/ImportTab.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ function ImportTabClass:ImportItemsAndSkills(json)
758758
end
759759
end
760760
wipeTable(self.build.skillsTab.socketGroupList)
761+
self.build.skillsTab:RebuildImbuedSupportBySlot()
761762
end
762763
self.charImportStatus = colorCodes.POSITIVE.."Items and skills successfully imported."
763764
--ConPrintTable(charItemData)

src/Classes/SkillListControl.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ local SkillListClass = newClass("SkillListControl", "ListControl", function(self
3939
self.controls.deleteAll = new("ButtonControl", {"RIGHT",self.controls.delete,"LEFT"}, {-4, 0, 70, 18}, "Delete All", function()
4040
main:OpenConfirmPopup("Delete All", "Are you sure you want to delete all socket groups in this build?", "Delete", function()
4141
wipeTable(self.list)
42+
skillsTab:RebuildImbuedSupportBySlot()
4243
skillsTab:SetDisplayGroup()
4344
skillsTab:AddUndoState()
4445
skillsTab.build.buildFlag = true
@@ -165,6 +166,7 @@ function SkillListClass:OnSelDelete(index, socketGroup)
165166
main:OpenMessagePopup("Delete Socket Group", "This socket group cannot be deleted as it is created by an equipped item.")
166167
elseif not socketGroup.gemList[1] then
167168
t_remove(self.list, index)
169+
self.skillsTab:RebuildImbuedSupportBySlot()
168170
if self.skillsTab.displayGroup == socketGroup then
169171
self.skillsTab.displayGroup = nil
170172
end
@@ -175,6 +177,7 @@ function SkillListClass:OnSelDelete(index, socketGroup)
175177
else
176178
main:OpenConfirmPopup("Delete Socket Group", "Are you sure you want to delete '"..socketGroup.displayLabel.."'?", "Delete", function()
177179
t_remove(self.list, index)
180+
self.skillsTab:RebuildImbuedSupportBySlot()
178181
if self.skillsTab.displayGroup == socketGroup then
179182
self.skillsTab:SetDisplayGroup()
180183
end

0 commit comments

Comments
 (0)