mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix double clicking on folders in demo browser
This commit is contained in:
parent
7f1b957a84
commit
39b716d5ab
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue