Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
ActionBars: Fix right-click self-cast option not persisting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tremolo4 committed Aug 5, 2020
1 parent 65ab034 commit 736fdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ElvUI/modules/actionbars/actionbars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ function AB:UpdateButtonConfig(bar, buttonName)
button:SetAttribute("checkselfcast", true)
button:SetAttribute("checkfocuscast", true)
if self.db.rightClickSelfCast then
E:Delay(0.1, bar:SetAttribute("unit-S"..(bar:GetAttribute("state-page") or 0).."Right", "player"))
E:Delay(0.1, function() bar:SetAttribute("unit-S"..(bar:GetAttribute("state-page") or 0).."Right", "player") end)
else
bar:SetAttribute("unit-S"..(bar:GetAttribute("state-page") or 0).."Right")
end
Expand Down

0 comments on commit 736fdd1

Please sign in to comment.