Skip to content

Commit d798dad

Browse files
committed
handle this another way
1 parent 857670c commit d798dad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: ElvUI/Core/Modules/Misc/RaidUtility.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function RU:SetEnabled(button, enabled, isLeader)
7777
if button.SetChecked then
7878
button:SetChecked(enabled)
7979
else
80-
button:SetEnabled(enabled)
80+
button.enabled = enabled
8181
end
8282

8383
if button.Text then -- show text grey when isLeader is false, nil and true should be white
@@ -295,7 +295,7 @@ function RU:OnEvent_ReadyCheckButton()
295295
end
296296

297297
function RU:OnClick_ReadyCheckButton()
298-
if RU:InGroup() then
298+
if self.enabled and RU:InGroup() then
299299
DoReadyCheck()
300300
end
301301
end
@@ -305,7 +305,7 @@ function RU:OnEvent_RoleCheckButton()
305305
end
306306

307307
function RU:OnClick_RoleCheckButton()
308-
if RU:InGroup() then
308+
if self.enabled and RU:InGroup() then
309309
InitiateRolePoll()
310310
end
311311
end

0 commit comments

Comments
 (0)