fix server browser bug

ddnet client has the server browser while online
This commit is contained in:
ZombieToad 2018-06-17 03:26:23 +01:00 committed by GitHub
parent 13722d849d
commit 7da716e3f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1464,6 +1464,6 @@ void CMenus::ConchainFriendlistUpdate(IConsole::IResult *pResult, void *pUserDat
void CMenus::ConchainServerbrowserUpdate(IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
{
pfnCallback(pResult, pCallbackUserData);
if(pResult->NumArguments() && g_Config.m_UiPage == PAGE_FAVORITES && ((CMenus *)pUserData)->Client()->State() == IClient::STATE_OFFLINE)
if(pResult->NumArguments() && g_Config.m_UiPage == PAGE_FAVORITES)
((CMenus *)pUserData)->ServerBrowser()->Refresh(IServerBrowser::TYPE_FAVORITES);
}