2721: Don't update news when something was only removed r=heinrich5991 a=def-



Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2020-09-03 18:49:22 +00:00 committed by GitHub
commit 9edb3706dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2441,7 +2441,8 @@ void CClient::LoadDDNetInfo()
{
const char *pNewsString = json_string_get(pNews);
if(m_aNews[0] && str_comp(m_aNews, pNewsString))
// Only switch to news page if something new was added to the news
if(m_aNews[0] && str_find(m_aNews, pNewsString) == nullptr)
g_Config.m_UiPage = CMenus::PAGE_NEWS;
str_copy(m_aNews, pNewsString, sizeof(m_aNews));