From 798500d6d21bb3a6a0091bfc891fa42a73c347cb Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 18 Jul 2019 20:40:21 +0200 Subject: [PATCH] api: use same shadow conditions as for backdrop --- api/api.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/api.lua b/api/api.lua index 9a8bc27a..eaa7f208 100644 --- a/api/api.lua +++ b/api/api.lua @@ -866,6 +866,9 @@ end -- Creates a pfUI compatible frame as shadow element -- 'f' [frame] the frame which should get a backdrop. function pfUI.api.CreateBackdropShadow(f) + -- exit if now frame was given + if not f then return end + if f.backdrop_shadow or pfUI_config.appearance.border.shadow ~= "1" then return end