Commit 2603f4ac authored by Benik's avatar Benik

This was fine

parent 05057ec8
......@@ -63,29 +63,10 @@ local bbuttons = {}
function mod:ToggleBuiDts()
local db = E.db.benikui.datatexts.chat
local edb = E.db.datatexts
if edb.leftChatPanel or edb.rightChatPanel then
db.enable = false
BuiLeftChatDTPanel:Hide()
BuiRightChatDTPanel:Hide()
end
if db.enable then
if db.showChatDt == 'SHOWBOTH' then
BuiLeftChatDTPanel:Show()
BuiRightChatDTPanel:Show()
elseif db.showChatDt == 'LEFT' then
if not edb.leftChatPanel then
BuiLeftChatDTPanel:Show()
end
BuiRightChatDTPanel:Hide()
elseif db.showChatDt == 'RIGHT' then
BuiLeftChatDTPanel:Hide()
if not edb.rightChatPanel then
BuiRightChatDTPanel:Show()
end
end
BuiLeftChatDTPanel:Show()
BuiRightChatDTPanel:Show()
else
BuiLeftChatDTPanel:Hide()
BuiRightChatDTPanel:Hide()
......
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