unlock: delay dock updates when scaling changes

This commit is contained in:
shagu
2018-08-18 17:34:23 +02:00
parent dab55ff292
commit dd2a562813
+2 -3
View File
@@ -286,7 +286,7 @@ pfUI:RegisterModule("unlock", function ()
end end
if frame.OnMove then frame:OnMove() end if frame.OnMove then frame:OnMove() end
UpdateDockValues() QueueFunction(UpdateDockValues)
end end
local function DraggerOnMouseDown() local function DraggerOnMouseDown()
@@ -557,8 +557,7 @@ pfUI:RegisterModule("unlock", function ()
frame:StopMovingOrSizing() frame:StopMovingOrSizing()
SavePosition(frame) SavePosition(frame)
end end
QueueFunction(SetDockToFrame, pfUI.unlock.dock.parent)
UpdateDockValues()
end) end)
SkinButton(pfUI.unlock.dock.reset,.2,1,.8) SkinButton(pfUI.unlock.dock.reset,.2,1,.8)