mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix button presses after esc after color picker usage (fixes# 3575)
This commit is contained in:
parent
ed9abba485
commit
15220d4545
|
@ -1470,6 +1470,13 @@ bool CMenus::CanDisplayWarning()
|
|||
|
||||
void CMenus::RenderColorPicker()
|
||||
{
|
||||
if(m_EscapePressed)
|
||||
{
|
||||
ms_ColorPicker.m_Active = false;
|
||||
ms_ValueSelectorTextMode = false;
|
||||
UI()->SetActiveItem(0);
|
||||
}
|
||||
|
||||
if(!ms_ColorPicker.m_Active)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue