mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 01:54:19 +00:00
fixed frozen GUI caused by popups
This commit is contained in:
parent
0914490bd9
commit
878af82d8f
|
@ -1311,6 +1311,9 @@ int CMenus::Render()
|
||||||
if(DoButton_Menu(&s_Button, pButtonText, 0, &Part) || m_EscapePressed || m_EnterPressed)
|
if(DoButton_Menu(&s_Button, pButtonText, 0, &Part) || m_EscapePressed || m_EnterPressed)
|
||||||
m_Popup = POPUP_NONE;
|
m_Popup = POPUP_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(m_Popup == POPUP_NONE)
|
||||||
|
UI()->SetActiveItem(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue