fix toggleHpTools to support split primary button (#3900)

Fixes a small bug in toggling buttons with hanging protocols.
This commit is contained in:
m00n620 authored and GitHub committed 2024-01-22 15:42:51 -05:00
1 parent ed2bf23cd2
commit ef46b5a704
1 file changed
+4 -1
+4 -1
View File
@@ -121,7 +121,10 @@ const commandsModule = ({
if (!button.id) { if (!button.id) {
return; return;
} }
const { commands, items } = button.props || button; const { commands, items, primary } = button.props || button;
if (primary) {
enableListener(primary);
}
if (items) { if (items) {
items.forEach(enableListener); items.forEach(enableListener);
} }