Fix double clicking on folders in demo browser

This commit is contained in:
Robert Müller 2022-01-19 21:44:42 +01:00
parent 7f1b957a84
commit 39b716d5ab

View file

@ -1194,8 +1194,7 @@ void CMenus::RenderDemoList(CUIRect MainView)
UI()->ClipDisable();
bool Activated = false;
if(m_EnterPressed || (UI()->HotItem() == m_lDemos[m_DemolistSelectedIndex].m_aName && Input()->MouseDoubleClick()))
if(m_EnterPressed || (NewSelected >= 0 && Input()->MouseDoubleClick()))
{
UI()->SetActiveItem(0);
Activated = true;