mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Don't update news when something was only removed
This commit is contained in:
parent
bf085c290b
commit
d6f74eb654
|
@ -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