summaryrefslogtreecommitdiff
path: root/nopacity.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-02-01 10:45:12 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-02-01 12:26:16 +0100
commit8cc89ec5bb5da64148d3527366ae9f8854d17ba4 (patch)
treeb5ff1d7f20563368d984e02272c6f7d11275868c /nopacity.c
parenteb27219c96a2fe5419289c84b1930f3e71ada54b (diff)
downloadskin-nopacity-8cc89ec5bb5da64148d3527366ae9f8854d17ba4.tar.gz
skin-nopacity-8cc89ec5bb5da64148d3527366ae9f8854d17ba4.tar.bz2
Fixed an display error in mainmenu
Diffstat (limited to 'nopacity.c')
-rw-r--r--nopacity.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nopacity.c b/nopacity.c
index e4de4f8..38445c9 100644
--- a/nopacity.c
+++ b/nopacity.c
@@ -13,6 +13,7 @@
cNopacity::cNopacity(cImageCache *imgCache) : cSkin("nOpacity", &::Theme) {
displayMenu = NULL;
+ init = true;
config.LoadThemeSpecificConfigs();
config.SetThemeSpecificDefaults();
config.SetThemeSetup();
@@ -24,7 +25,6 @@ cNopacity::cNopacity(cImageCache *imgCache) : cSkin("nOpacity", &::Theme) {
fontManager->SetFonts();
this->imgCache = imgCache;
imgCache->CreateCache();
- imgCache->CreateCacheDelayed();
}
const char *cNopacity::Description(void) {
@@ -33,6 +33,10 @@ const char *cNopacity::Description(void) {
cSkinDisplayChannel *cNopacity::DisplayChannel(bool WithInfo) {
ReloadCaches();
+ if (init) {
+ imgCache->CreateCacheDelayed();
+ init = false;
+ }
return new cNopacityDisplayChannel(imgCache, WithInfo);
}