Skip to content

Commit

Permalink
fix error in SOD
Browse files Browse the repository at this point in the history
  • Loading branch information
Repooc committed Jul 10, 2024
1 parent f7ee2bf commit da0627b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tukui/Modules/ChatFrames/ChatFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function Chat:StyleFrame(frame)
_G[format("ChatFrame%sTabSelectedMiddle", ID)]:Kill()
_G[format("ChatFrame%sTabSelectedRight", ID)]:Kill()

if T.Cata then
if T.Cata or T.Classic then
_G[format("ChatFrame%sMinimizeButton", ID)]:Kill()
else
_G[format("ChatFrame%sButtonFrameMinimizeButton", ID)]:Kill()
Expand Down Expand Up @@ -281,7 +281,7 @@ function Chat:SetChatFramePosition()
Frame:ClearAllPoints()
Frame:SetSize(C.Chat.LeftWidth, C.Chat.LeftHeight - 62)
Frame:SetPoint("BOTTOMLEFT", T.DataTexts.Panels.Left, "TOPLEFT", 0, 4)

if T.Retail then
hooksecurefunc(Frame, "SetPoint", Chat.SetChatFrame1Position)
end
Expand Down Expand Up @@ -465,7 +465,7 @@ function Chat:Reset()
ChangeChatColor("CHANNEL5", 0/255, 228/255, 121/255)
ChangeChatColor("CHANNEL6", 0/255, 228/255, 0/255)
end

Chat.SetChatFramePosition(ChatFrame1)
end

Expand Down Expand Up @@ -647,7 +647,7 @@ function Chat:Setup()
Tab:SetAlpha(0)
Tab:HookScript("OnClick", self.SwitchSpokenDialect)
Tab:SetFrameLevel(6)

if Minimize then
Minimize:Kill()
end
Expand Down

0 comments on commit da0627b

Please sign in to comment.