fix: Use method call syntax for ApplyScale

This commit is contained in:
Xurkon
2026-04-02 18:58:27 -05:00
parent 75d63da509
commit ef61faa9f9
@@ -56,9 +56,9 @@ function QuestieOptions.tabs.arrow:Initialize()
get = function() return Questie.db.profile.arrowScale or 1 end, get = function() return Questie.db.profile.arrowScale or 1 end,
set = function(_, value) set = function(_, value)
Questie.db.profile.arrowScale = value Questie.db.profile.arrowScale = value
local frame = _G.QuestieArrowFrame -- Ensure frame exists first, then apply scale
if frame then if QuestieArrow and QuestieArrow.ApplyScale then
frame:SetScale(value) QuestieArrow.ApplyScale()
end end
end, end,
}, },
@@ -107,10 +107,8 @@ function QuestieOptions.tabs.arrow:Initialize()
desc = function() return l10n("Reset the arrow position to the center of the screen") end, desc = function() return l10n("Reset the arrow position to the center of the screen") end,
func = function() func = function()
Questie.db.profile.arrowPosition = nil Questie.db.profile.arrowPosition = nil
local frame = _G.QuestieArrowFrame if QuestieArrow and QuestieArrow.ResetPosition then
if frame then QuestieArrow:ResetPosition()
frame:ClearAllPoints()
frame:SetPoint("CENTER", UIParent, "CENTER", 0, -100)
end end
end, end,
}, },