Skip to content

Commit 24faae9

Browse files
authored
Merge pull request #224 from LuYifei2011/patch-1
Add handling for checkbox in middle-click-popup
2 parents 5b91fba + 64b7a7b commit 24faae9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/addons/addons/middle-click-popup/BlockTypeInfo.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ export class BlockTypeInfo {
423423
} else {
424424
if (!field.argType_) {
425425
if (field.getText().trim().length !== 0) parts.push(field.getText());
426+
} else if (field.argType_[0] === "checkbox") {
427+
addInput(new BlockInputBoolean(inputIdx, fieldIdx));
426428
} else if (field.argType_[0] === "colour") {
427429
addInput(new BlockInputColour(inputIdx, fieldIdx));
428430
} else if (field.argType_[1] === "number") {

0 commit comments

Comments
 (0)