set_can_unselect


Description:

public void set_can_unselect (bool can_unselect)

If true, unselecting the current item via unselect_item is supported.

Note that setting autoselect will cause the unselecting to not work, so it practically makes no sense to set both at the same time the same time.

Parameters:

this

a SingleSelection

can_unselect

true to allow unselecting