Skip to content

Commit

Permalink
sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Dec 21, 2024
1 parent d9e712f commit a6f1df4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ClassicCastbars_Options/TestMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ end

local function OnDragStop(self)
self:StopMovingOrSizing()
if not self.unitID then return end

-- Frame loses relativity to parent and is instead relative to UIParent after
-- dragging so we can't just use self:GetPoint() here
Expand All @@ -49,8 +50,8 @@ local function OnDragStop(self)
ClassicCastbars.db[unit].autoPosition = false

-- Reanchor from UIParent back to parent frame
self:SetParent(self.parent)
self:ClearAllPoints()
self:SetParent(self.parent)
self:SetPoint("CENTER", self.parent, x, y)
end

Expand Down

0 comments on commit a6f1df4

Please sign in to comment.