Fix button presses after esc after color picker usage (fixes# 3575)

This commit is contained in:
def 2021-02-01 23:49:42 +01:00
parent ed9abba485
commit 15220d4545

View file

@ -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;