ListBox.setActivateOnSingleClick

void setActivateOnSingleClick(bool single)

If single is true, rows will be activated when you click on them, otherwise you need to double-click.

Parameters

singlea boolean