diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-02-01 10:45:12 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-02-01 12:26:16 +0100 |
commit | 8cc89ec5bb5da64148d3527366ae9f8854d17ba4 (patch) | |
tree | b5ff1d7f20563368d984e02272c6f7d11275868c /nopacity.c | |
parent | eb27219c96a2fe5419289c84b1930f3e71ada54b (diff) | |
download | skin-nopacity-8cc89ec5bb5da64148d3527366ae9f8854d17ba4.tar.gz skin-nopacity-8cc89ec5bb5da64148d3527366ae9f8854d17ba4.tar.bz2 |
Fixed an display error in mainmenu
Diffstat (limited to 'nopacity.c')
-rw-r--r-- | nopacity.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |