Fix escape not working in server browser and demo browser

Closes #6718.
This commit is contained in:
Robert Müller 2023-06-08 09:46:19 +02:00
parent 632b6216be
commit a3abc27b9a

View file

@ -1769,7 +1769,7 @@ int CMenus::Render()
UI()->RenderPopupMenus();
// Handle this escape hotkey after popup menus
if(m_MenuPage == PAGE_SETTINGS && !m_ShowStart && Client()->State() == IClient::STATE_OFFLINE && UI()->ConsumeHotkey(CUI::HOTKEY_ESCAPE))
if(!m_ShowStart && Client()->State() == IClient::STATE_OFFLINE && UI()->ConsumeHotkey(CUI::HOTKEY_ESCAPE))
{
m_ShowStart = true;
}