summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-05 14:16:08 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-10 17:44:59 +0100
commit1d6f6a764e1e8b4f66476668828295418448eb7e (patch)
treed8056b2d626160aa9fb46625844f4f8936b23923 /setup.c
parentcb6c9ba9c25e4f265ea34a540e10e6735fbf6a99 (diff)
downloadskin-nopacity-1d6f6a764e1e8b4f66476668828295418448eb7e.tar.gz
skin-nopacity-1d6f6a764e1e8b4f66476668828295418448eb7e.tar.bz2
Simplify cImageCache
- Merge CreateCache(void) and CreateCacheDelayed(void) and move CreateCache() to cImageCache::cImageCache(). This allows a new instance of imgCache to be created after configuration changes. - Eliminate cImageCache::Reload() cImageCache::Reload() is no longer required.
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 01eb97f..d87088d 100644
--- a/setup.c
+++ b/setup.c
@@ -13,7 +13,8 @@ cNopacitySetup::~cNopacitySetup() {
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));
}