diff options
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) { |