Skip to content

Commit 1341b5a

Browse files
committed
undostate
1 parent cb0c593 commit 1341b5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/SkillsTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
224224
return
225225
end
226226
local updateDisplayGroup = self.displayGroup and targetSlot == self.displayGroup.slot
227+
self:AddUndoState()
227228
if gemData and (type(gemData) == "string" or gemData.id) then
228229
local gem = data.gems[gemData.id or gemData]
229230
self.imbuedSupportBySlot[targetSlot] = gem.grantedEffect
@@ -238,7 +239,6 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
238239
self.displayGroup.imbuedSupport = nil
239240
end
240241
end
241-
self.modFlag = true
242242
end, true, true)
243243
local function isImbuedEnabled() -- socketedIn must be set and the displayGroup must have an imbued, otherwise disable the imbued dropdown
244244
return (self.displayGroup and self.displayGroup.slot and ((self.imbuedSupportBySlot[self.displayGroup.slot] and self.displayGroup.imbuedSupport) or not self.imbuedSupportBySlot[self.displayGroup.slot]))
@@ -254,8 +254,8 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
254254
self.controls.imbuedSupport:SetText("")
255255
self.displayGroup.imbuedSupport = nil
256256
self.imbuedSupportBySlot[self.displayGroup.slot] = nil
257+
self:AddUndoState()
257258
self.build.buildFlag = true
258-
self.modFlag = true
259259
end)
260260
self.controls.imbuedSupportClear.enabled = function()
261261
return isImbuedEnabled()

0 commit comments

Comments
 (0)