mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove redundant server browser refresh on client start
The `RefreshBrowserTab` function already does the respective `ServerBrowser()->Refresh(...)` calls.
This commit is contained in:
parent
24b75d17e9
commit
7312721743
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue