Skip to content

Commit fda8b4b

Browse files
authored
ISX-1514 multiple bindings created on single add button click fix (#1728)
1 parent 6da7853 commit fda8b4b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionsTreeView.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public ActionsTreeView(VisualElement root, StateContainer stateContainer)
4949
if (item.isAction)
5050
{
5151
addBindingButton.style.display = DisplayStyle.Flex;
52+
addBindingButton.clickable = null; //reset the clickable to avoid multiple subscriptions
5253
addBindingButton.clicked += () => AddBinding(item.name);
5354
treeViewItem.EditTextFinishedCallback = newName =>
5455
{

0 commit comments

Comments
 (0)