mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
fixed problem with connecting on double click in the server browser. Closes #662
This commit is contained in:
parent
193fb192c5
commit
5b2f5f0778
|
@ -371,7 +371,7 @@ CMenus::CListboxItem CMenus::UiDoListboxNextItem(const void *pId, bool Selected)
|
||||||
{
|
{
|
||||||
gs_ListBoxDoneEvents = 1;
|
gs_ListBoxDoneEvents = 1;
|
||||||
|
|
||||||
if(m_EnterPressed || (Input()->MouseDoubleClick() && UI()->ActiveItem() == pId))
|
if(m_EnterPressed || (UI()->ActiveItem() == pId && Input()->MouseDoubleClick()))
|
||||||
{
|
{
|
||||||
gs_ListBoxItemActivated = true;
|
gs_ListBoxItemActivated = true;
|
||||||
UI()->SetActiveItem(0);
|
UI()->SetActiveItem(0);
|
||||||
|
|
Loading…
Reference in a new issue