(fix/OptionsFrame) not using saved framepostion

This commit is contained in:
NoM0Re
2025-02-08 18:34:20 +01:00
committed by GitHub
parent b1ce30d91c
commit 93487ebc8c
@@ -124,6 +124,10 @@ function OptionsPrivate.CreateFrame()
db.frame = nil
end
if odb.frame then
xOffset, yOffset = odb.frame.xOffset, odb.frame.yOffset
end
if not (xOffset and yOffset) then
xOffset = GetScreenWidth() / 2
yOffset = GetScreenHeight() - defaultHeight / 2