summaryrefslogtreecommitdiff
path: root/nopacity.c
diff options
context:
space:
mode:
Diffstat (limited to 'nopacity.c')
-rw-r--r--nopacity.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/nopacity.c b/nopacity.c
index 073eb9b..cbe2841 100644
--- a/nopacity.c
+++ b/nopacity.c
@@ -12,7 +12,6 @@
#include "displaymessage.h"
cNopacity::cNopacity(void) : cSkin("nOpacity", &::Theme) {
- init = true;
config.LoadThemeSpecificConfigs();
config.SetThemeSpecificDefaults();
config.SetThemeSetup();
@@ -21,8 +20,7 @@ cNopacity::cNopacity(void) : cSkin("nOpacity", &::Theme) {
geoManager = new cGeometryManager();
geoManager->SetGeometry();
fontManager = NULL;
- imgCache = new cImageCache();
- imgCache->CreateCache();
+ imgCache = NULL;
}
cNopacity::~cNopacity() {
@@ -37,10 +35,6 @@ const char *cNopacity::Description(void) {
cSkinDisplayChannel *cNopacity::DisplayChannel(bool WithInfo) {
ReloadCaches();
- if (init) {
- imgCache->CreateCacheDelayed();
- init = false;
- }
return new cNopacityDisplayChannel(WithInfo);
}
@@ -79,7 +73,8 @@ void cNopacity::ReloadCaches(void) {
geoManager->SetGeometry();
delete fontManager;
fontManager = new cFontManager();
- imgCache->Reload();
+ delete imgCache;
+ imgCache = new cImageCache();
dsyslog("nopacity: Cache reloaded in %d ms", int(cTimeMs::Now()-start));
}
}