Final part to fix #854:
don't remove addons.xml and news.xml during re-init of NetworkHttp, it's not needed anymore to force refreshing them when clicking "reload". git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12999 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
07f9e39680
commit
10668e8c68
@ -278,7 +278,7 @@ CURLcode NetworkHttp::init(bool forceRefresh)
|
||||
bool download = UserConfigParams::m_news_last_updated==0 ||
|
||||
UserConfigParams::m_news_last_updated
|
||||
+UserConfigParams::m_news_frequency
|
||||
< Time::getTimeSinceEpoch();
|
||||
< Time::getTimeSinceEpoch() || forceRefresh;
|
||||
|
||||
if(!download)
|
||||
{
|
||||
@ -401,10 +401,6 @@ CURLcode NetworkHttp::reInit()
|
||||
m_all_requests.getData().pop();
|
||||
m_all_requests.unlock();
|
||||
|
||||
std::string news_file = file_manager->getAddonsFile("news.xml");
|
||||
file_manager->removeFile(news_file);
|
||||
std::string addons_file = file_manager->getAddonsFile("addons.xml");
|
||||
file_manager->removeFile(addons_file);
|
||||
if(UserConfigParams::logAddons())
|
||||
printf("[addons] Xml files deleted, re-initialising addon manager.\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user