diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | config.c | 3 | ||||
-rw-r--r-- | nopacity.c | 3 |
3 files changed, 3 insertions, 4 deletions
@@ -374,3 +374,4 @@ Version 0.1.4 - Added logo backgrounds in displaychannel also for blended themes - Usage of channel logo background in displaychannel and on menuelements configurable via plugin setup +- Fixed a bug that setup values are not stored if theme is changed @@ -358,7 +358,8 @@ void cNopacityConfig::SetThemeConfigSetupValue(std::string themeName, std::strin std::map<std::string, std::map<std::string, int> >::iterator hit = themeConfigSetup.find(themeName); if (hit != themeConfigSetup.end()) { std::map<std::string, int> existingValues = (std::map<std::string, int>)hit->second; - existingValues.insert(std::pair<std::string, int>(key, value)); + existingValues.erase(key); + existingValues.insert(std::pair<std::string, int>(key, value)); themeConfigSetup.erase(themeName); themeConfigSetup.insert(std::pair<std::string, std::map<std::string, int> >(themeName, existingValues)); } else { @@ -18,9 +18,6 @@ cNopacity::cNopacity(cImageCache *imgCache) : cSkin("nOpacity", &::Theme) { config.SetThemeSetup(); config.SetPathes(); config.SetFontName(); - config.DumpConfig(); - config.DumpThemeConfig(); - geoManager = new cGeometryManager(); geoManager->SetGeometry(); fontManager = new cFontManager(); |