diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-12-11 18:14:16 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-12-11 18:49:26 +0100 |
commit | bc9cb23ed73c7b85210c8948135773b973fc2927 (patch) | |
tree | 4fe25dbbcf490865ffe58c625399fbe2b29c3c4b /designer.c | |
parent | df8c8e299363a5e93c1436cf8d8ca54c57694256 (diff) | |
download | vdr-plugin-skindesigner-1.2.8.6.tar.gz vdr-plugin-skindesigner-1.2.8.6.tar.bz2 |
Refresh imgCache if OsdProvider was changed (Thanks to lnj @vdr-portal.de)1.2.8.6
Diffstat (limited to 'designer.c')
-rw-r--r-- | designer.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -171,6 +171,7 @@ void cSkinDesigner::ListCustomTokens(void) { } skindesignerapi::ISkinDisplayPlugin *cSkinDesigner::GetDisplayPlugin(int plugId) { + Init(); map<int, cViewPlugin*>::iterator hit = pluginViews.find(plugId); if (hit == pluginViews.end()) return NULL; @@ -194,7 +195,7 @@ void cSkinDesigner::Init(void) { config.SetOSDFonts(); } dsyslog("skindesigner: initializing skin %s", skin.c_str()); - + config.CheckDecimalPoint(); plgManager->Reset(); @@ -235,6 +236,14 @@ void cSkinDesigner::Init(void) { watch.Stop("templates loaded and caches created"); } } + else if (config.PlayModeChanged()) + { + dsyslog ("skindesigner: drop image cache"); + if (imgCache) + delete imgCache; + imgCache = new cImageCache(); + imgCache->SetPathes(); + } } void cSkinDesigner::DeleteViews(void) { |