Commit 78996243 authored by Blazeflack's avatar Blazeflack

Fixed issue which prevented Chat History from working if ChatMaxLines was enabled.

parent e1581eeb
......@@ -42,5 +42,12 @@ function UpdateMaxLines()
local frame = _G[frameName]
frame:SetMaxLines(E.db.CustomTweaks.ChatMaxLines.MaxLines)
end
--Re-display chat history since it was all cleared when calling :SetMaxLines
if E.db.chat.chatHistory then
self.SoundPlayed = true;
self:DisplayChatHistory()
self.SoundPlayed = nil;
end
end
hooksecurefunc(CH, "Initialize", UpdateMaxLines)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment