Skip to content

Commit b467bb8

Browse files
cscoder69claude
andcommitted
Switches repaint when clicked (the option's click handler replaced the repaint)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 393b397 commit b467bb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎CSCoder_QuestIndicator.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ local function AddCheck(parent, labelKey, tipKey, settingKey, x, y)
12071207
local function Sync() check:SetChecked(db[settingKey]) end
12081208
refreshers[#refreshers + 1] = Sync
12091209
check:SetScript("OnShow", Sync)
1210-
check:SetScript("OnClick", function(self)
1210+
check:HookScript("OnClick", function(self) -- (Hook: the switch repaints on click too)
12111211
db[settingKey] = self:GetChecked() and true or false
12121212
ApplySettings()
12131213
end)

0 commit comments

Comments
 (0)