mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 09:56:03 +00:00
api: always save current position data on update
This commit is contained in:
+4
-6
@@ -479,12 +479,10 @@ function pfUI.api.UpdateMovable(frame)
|
||||
table.insert(pfUI.movables, name)
|
||||
end
|
||||
|
||||
if not frame.posdata then
|
||||
frame.posdata = { scale = frame:GetScale(), pos = {} }
|
||||
|
||||
for i=1,frame:GetNumPoints() do
|
||||
frame.posdata.pos[i] = { frame:GetPoint(i) }
|
||||
end
|
||||
-- update position data
|
||||
frame.posdata = { scale = frame:GetScale(), pos = {} }
|
||||
for i=1,frame:GetNumPoints() do
|
||||
frame.posdata.pos[i] = { frame:GetPoint(i) }
|
||||
end
|
||||
|
||||
if pfUI_config["position"][frame:GetName()] then
|
||||
|
||||
Reference in New Issue
Block a user