diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-10-18 14:32:33 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-10-19 15:10:13 +0200 |
commit | 87948915995c0d2752a3aaa80d470ee7e5366902 (patch) | |
tree | caef4c7837261ed4141b4174a8eebb9a7b3fde29 /config.c | |
parent | cd62a9bd6bdeda23387033c48023389b4e32d9e8 (diff) | |
download | vdr-plugin-tvguide-87948915995c0d2752a3aaa80d470ee7e5366902.tar.gz vdr-plugin-tvguide-87948915995c0d2752a3aaa80d470ee7e5366902.tar.bz2 |
Fixed a error while changing a Theme
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -95,6 +95,7 @@ cTVGuideConfig::cTVGuideConfig() { FontRecMenuItemLargeDelta = 0; timeFormat = 1; useNopacityTheme = 1; + useNopacityThemeCurrent = -1; themeIndex = -1; themeIndexCurrent = -1; themeName = ""; @@ -124,13 +125,14 @@ bool cTVGuideConfig::LoadTheme() { //is correct theme already loaded? if (nOpacityTheme.size() == 0) nOpacityTheme = Setup.OSDTheme; - if ((themeIndex > -1) && (themeIndex == themeIndexCurrent)) { + if ((themeIndex > -1) && (themeIndex == themeIndexCurrent) && (useNopacityTheme == useNopacityThemeCurrent)) { if (!nOpacityTheme.compare(Setup.OSDTheme)) { return false; } else { nOpacityTheme = Setup.OSDTheme; } } + esyslog("tvguide: loading new Theme"); //Load available Themes cThemes themes; themes.Load(*cString("tvguide")); @@ -167,6 +169,7 @@ bool cTVGuideConfig::LoadTheme() { themeIndex = 0; themeIndexCurrent = themeIndex; + useNopacityThemeCurrent = useNopacityTheme; const char *themePath = themes.FileName(themeIndex); if (access(themePath, F_OK) == 0) { |