X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4..3cecb0072a5dd7e0d0e44333e17a7c87e6e5234f:/skin.py?ds=sidebyside diff --git a/skin.py b/skin.py index 21ec62ae..26c08207 100644 --- a/skin.py +++ b/skin.py @@ -106,7 +106,13 @@ def collectAttributes(skinAttributes, node, skin_path_prefix=None, ignore=[]): skinAttributes.append((attrib, value)) def loadPixmap(path, desktop): - ptr = LoadPixmap(path, desktop) + cached = False + option = path.find("#") + if option != -1: + options = path[option+1:].split(',') + path = path[:option] + cached = "cached" in options + ptr = LoadPixmap(path, desktop, cached) if ptr is None: raise SkinError("pixmap file %s not found!" % (path)) return ptr