mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2721
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:
commit
9edb3706dd
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue