X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/98c4b5bb004e9297bffa8e1c3572572741fda933..c2a4869e307a91ba25ff5c827505f884764d7b6c:/lib/python/Components/GUISkin.py diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 982cce31..c953aaec 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -20,7 +20,12 @@ class GUISkin: applyAllAttributes(w.instance, desktop, w.skinAttributes) for f in self.onLayoutFinish: - exec(f) in globals(), locals() + if type(f) is not type(self.close): # is this the best way to do this? + exec(f) in globals(), locals() + else: + f() + + def deleteGUIScreen(self): for (name, val) in self.items():