Remove redundant server browser refresh on client start

The `RefreshBrowserTab` function already does the respective `ServerBrowser()->Refresh(...)` calls.
This commit is contained in:
Robert Müller 2023-10-26 21:24:53 +02:00
parent 24b75d17e9
commit 7312721743

View file

@ -978,19 +978,8 @@ int CMenus::Render()
else if(s_Frame == 1)
{
UpdateMusicState();
s_Frame++;
RefreshBrowserTab(g_Config.m_UiPage);
if(g_Config.m_UiPage == PAGE_INTERNET)
ServerBrowser()->Refresh(IServerBrowser::TYPE_INTERNET);
else if(g_Config.m_UiPage == PAGE_LAN)
ServerBrowser()->Refresh(IServerBrowser::TYPE_LAN);
else if(g_Config.m_UiPage == PAGE_FAVORITES)
ServerBrowser()->Refresh(IServerBrowser::TYPE_FAVORITES);
else if(g_Config.m_UiPage == PAGE_DDNET)
ServerBrowser()->Refresh(IServerBrowser::TYPE_DDNET);
else if(g_Config.m_UiPage == PAGE_KOG)
ServerBrowser()->Refresh(IServerBrowser::TYPE_KOG);
s_Frame++;
}
if(Client()->State() >= IClient::STATE_ONLINE)