fix: Apply scale and position immediately when settings change

This commit is contained in:
Xurkon
2026-04-02 18:28:08 -05:00
parent 6a67189a4c
commit a5c5560c21
+5 -3
View File
@@ -155,6 +155,9 @@ end
local function EnsureArrowFrame()
if arrowFrame then
-- Apply current scale and alpha settings even if frame already exists
arrowFrame:SetScale(_GetArrowScale())
arrowFrame:SetAlpha(_GetArrowAlpha())
return
end
@@ -767,12 +770,11 @@ end
function QuestieArrow:ResetPosition()
Questie.db.profile.arrowPosition = nil
-- Destroy and recreate the arrow frame to apply default position
-- Reset to default center position
if arrowFrame then
arrowFrame:Hide()
arrowFrame:ClearAllPoints()
arrowFrame:SetPoint("CENTER", UIParent, "CENTER", 0, -100)
arrowFrame:Show()
arrowFrame._useDefaultPosition = true
end
end