mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed frozen GUI caused by popups
This commit is contained in:
parent
109e122f4f
commit
38b5d9987c
|
@ -2186,6 +2186,9 @@ int CMenus::Render()
|
|||
if(DoButton_Menu(&s_Button, pButtonText, 0, &BottomBar) || m_EscapePressed || m_EnterPressed)
|
||||
m_Popup = m_NextPopup;
|
||||
}
|
||||
|
||||
if(m_Popup == POPUP_NONE)
|
||||
UI()->SetActiveItem(0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue