Fix issue with cache update

Fixes an issue caused by 33fb004cdd
Website handle didn't have updated config which caused overridden values to be ignored
This commit is contained in:
Sude 2016-04-25 18:20:00 +03:00
parent 5bfb00bb31
commit 51026efec0
3 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class Website
std::vector<gameItem> getFreeGames(); std::vector<gameItem> getFreeGames();
std::vector<wishlistItem> getWishlistItems(); std::vector<wishlistItem> getWishlistItems();
bool IsLoggedIn(); bool IsLoggedIn();
void setConfig(Config &conf);
virtual ~Website(); virtual ~Website();
protected: protected:
private: private:

View File

@ -2831,6 +2831,7 @@ void Downloader::updateCache()
config.vLanguagePriority.clear(); config.vLanguagePriority.clear();
config.vPlatformPriority.clear(); config.vPlatformPriority.clear();
config.sIgnoreDLCCountRegex = ".*"; // Ignore DLC count for all games because GOG doesn't report DLC count correctly config.sIgnoreDLCCountRegex = ".*"; // Ignore DLC count for all games because GOG doesn't report DLC count correctly
gogWebsite->setConfig(config); // Make sure that website handle has updated config
this->getGameList(); this->getGameList();
this->getGameDetails(); this->getGameDetails();

View File

@ -701,3 +701,8 @@ std::vector<wishlistItem> Website::getWishlistItems()
return wishlistItems; return wishlistItems;
} }
void Website::setConfig(Config &conf)
{
this->config = conf;
}