Skip to content

Commit 7699e33

Browse files
committed
sanity check
1 parent bee4ea2 commit 7699e33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ClassicCastbars/ClassicCastbars.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,12 @@ function ClassicCastbars:NAME_PLATE_UNIT_ADDED(namePlateUnitToken)
276276

277277
-- Hide Blizz castbar
278278
if not plateCastbar.ClassicCastbarsHooked then
279-
plateCastbar:HookScript("OnShow", BlizzNameplateCastbar_OnShow)
280279
plateCastbar.ClassicCastbarsHooked = true
280+
plateCastbar:HookScript("OnShow", BlizzNameplateCastbar_OnShow)
281+
end
282+
if ClassicCastbars.db.nameplate.enabled then
283+
-- hide immediately incase its already shown
284+
plateCastbar:Hide()
281285
end
282286
end
283287

0 commit comments

Comments
 (0)