From 51026efec099590b907766c3d93cb245635d5390 Mon Sep 17 00:00:00 2001 From: Sude Date: Mon, 25 Apr 2016 18:20:00 +0300 Subject: [PATCH] Fix issue with cache update Fixes an issue caused by 33fb004cdd8ccbcb08b1f5ad9b62b1fe4801941d Website handle didn't have updated config which caused overridden values to be ignored --- include/website.h | 1 + src/downloader.cpp | 1 + src/website.cpp | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/include/website.h b/include/website.h index 6151005..0664784 100644 --- a/include/website.h +++ b/include/website.h @@ -24,6 +24,7 @@ class Website std::vector getFreeGames(); std::vector getWishlistItems(); bool IsLoggedIn(); + void setConfig(Config &conf); virtual ~Website(); protected: private: diff --git a/src/downloader.cpp b/src/downloader.cpp index 630fc40..b80afe3 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -2831,6 +2831,7 @@ void Downloader::updateCache() config.vLanguagePriority.clear(); config.vPlatformPriority.clear(); 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->getGameDetails(); diff --git a/src/website.cpp b/src/website.cpp index afb0d45..2e68bed 100644 --- a/src/website.cpp +++ b/src/website.cpp @@ -701,3 +701,8 @@ std::vector Website::getWishlistItems() return wishlistItems; } + +void Website::setConfig(Config &conf) +{ + this->config = conf; +}