From 8ad92b41a791c0747fe14ec6bb402b0fdc84a1bd Mon Sep 17 00:00:00 2001 From: m00n620 <50647994+m00n620@users.noreply.github.com> Date: Mon, 22 Jan 2024 15:42:51 -0500 Subject: [PATCH] fix toggleHpTools to support split primary button (#3900) Fixes a small bug in toggling buttons with hanging protocols. --- extensions/default/src/commandsModule.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/default/src/commandsModule.ts b/extensions/default/src/commandsModule.ts index bcc0cab591b..b58c54083ff 100644 --- a/extensions/default/src/commandsModule.ts +++ b/extensions/default/src/commandsModule.ts @@ -121,7 +121,10 @@ const commandsModule = ({ if (!button.id) { return; } - const { commands, items } = button.props || button; + const { commands, items, primary } = button.props || button; + if (primary) { + enableListener(primary); + } if (items) { items.forEach(enableListener); }