Commit 411e5696 authored by Benik's avatar Benik

Fixed a datatext error when Style is disabled

parent d9e1e4ba
......@@ -19,10 +19,12 @@ function mod:UpdatePanelInfo(panelName, panel, ...)
if not locPanel then
panel:Style('Outside')
if panel.style and db.benikuiStyle then
panel.style:Show()
else
panel.style:Hide()
if db.benikuiStyle then
if panel.style then
panel.style:Show()
else
panel.style:Hide()
end
end
if BUI.ShadowMode then
......
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