unlock: trigger move actions on reset

This commit is contained in:
shagu
2019-01-03 19:42:34 +01:00
parent f01cd2648a
commit dbc84b29b1
+5
View File
@@ -348,6 +348,8 @@ pfUI:RegisterModule("unlock", function ()
pfUI_config["position"][frame:GetName()] = nil pfUI_config["position"][frame:GetName()] = nil
frame:ClearAllPoints() frame:ClearAllPoints()
UpdateMovable(frame) UpdateMovable(frame)
if frame.OnMove then frame:OnMove() end
end end
UpdateDockValues() UpdateDockValues()
end end
@@ -557,6 +559,9 @@ pfUI:RegisterModule("unlock", function ()
frame:StopMovingOrSizing() frame:StopMovingOrSizing()
SavePosition(frame) SavePosition(frame)
end end
if frame.OnMove then frame:OnMove() end
QueueFunction(SetDockToFrame, pfUI.unlock.dock.parent) QueueFunction(SetDockToFrame, pfUI.unlock.dock.parent)
end) end)
SkinButton(pfUI.unlock.dock.reset,.2,1,.8) SkinButton(pfUI.unlock.dock.reset,.2,1,.8)