From 1decb399b35de57f0b18c5e7b904e3982dbef2b4 Mon Sep 17 00:00:00 2001 From: Xurkon Date: Thu, 2 Apr 2026 19:14:08 -0500 Subject: [PATCH] fix: Remove duplicate arrow_alpha and debug prints --- Modules/Arrow/QuestieArrow.lua | 4 ---- .../Options/ArrowTab/QuestieOptionsArrow.lua | 20 ------------------- 2 files changed, 24 deletions(-) diff --git a/Modules/Arrow/QuestieArrow.lua b/Modules/Arrow/QuestieArrow.lua index 149e40a..219d229 100644 --- a/Modules/Arrow/QuestieArrow.lua +++ b/Modules/Arrow/QuestieArrow.lua @@ -794,12 +794,8 @@ function QuestieArrow:ApplyAlpha() end function QuestieArrow:UpdateSettings() - -- Debug - print("UpdateSettings called, arrowFrame=" .. tostring(arrowFrame)) EnsureArrowFrame() - print("After EnsureArrowFrame, arrowFrame=" .. tostring(arrowFrame)) if arrowFrame then - print("Setting scale to " .. tostring(_GetArrowScale())) arrowFrame:SetScale(_GetArrowScale()) arrowFrame:SetAlpha(_GetArrowAlpha()) end diff --git a/Modules/Options/ArrowTab/QuestieOptionsArrow.lua b/Modules/Options/ArrowTab/QuestieOptionsArrow.lua index 073af40..39b72dd 100644 --- a/Modules/Options/ArrowTab/QuestieOptionsArrow.lua +++ b/Modules/Options/ArrowTab/QuestieOptionsArrow.lua @@ -55,7 +55,6 @@ function QuestieOptions.tabs.arrow:Initialize() step = 0.05, get = function() return Questie.db.profile.arrowScale or 1 end, set = function(_, value) - print("Arrow scale set to: " .. tostring(value)) Questie.db.profile.arrowScale = value if QuestieArrow and QuestieArrow.UpdateSettings then QuestieArrow:UpdateSettings() @@ -79,24 +78,6 @@ function QuestieOptions.tabs.arrow:Initialize() end end, }, - arrow_alpha = { - type = "range", - order = 5, - width = 1.5, - name = function() return l10n("Arrow Transparency") end, - desc = function() return l10n("Change the transparency of the arrow") end, - min = 0.1, - max = 1.0, - step = 0.05, - get = function() return Questie.db.profile.arrowAlpha or 1.0 end, - set = function(_, value) - Questie.db.profile.arrowAlpha = value - local frame = _G.QuestieArrowFrame - if frame then - frame:SetAlpha(value) - end - end, - }, arrow_spacer_2 = QuestieOptionsUtils:Spacer(6), autoTrackQuests = { type = "toggle", @@ -126,7 +107,6 @@ function QuestieOptions.tabs.arrow:Initialize() Questie.db.profile.arrowPosition = nil if QuestieArrow and QuestieArrow.ResetPosition then QuestieArrow:ResetPosition() - QuestieArrow:Refresh() end end, },