diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 5edb79233..266e2ce87 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -546,6 +546,16 @@ class Runtime extends EventEmitter { categoryInfo.menus.push(convertedMenu); } } + + // Add extension status button + if (extensionInfo.showStatusButton) { + categoryInfo.blocks.push({ + info: {}, + json: null, + xml: `` + }); + } + for (const blockInfo of extensionInfo.blocks) { if (blockInfo === '---') { categoryInfo.blocks.push(ConvertedSeparator); diff --git a/src/extensions/scratch3_microbit/index.js b/src/extensions/scratch3_microbit/index.js index 3dc801d70..8bf56b2a8 100644 --- a/src/extensions/scratch3_microbit/index.js +++ b/src/extensions/scratch3_microbit/index.js @@ -318,6 +318,7 @@ class Scratch3MicroBitBlocks { name: Scratch3MicroBitBlocks.EXTENSION_NAME, menuIconURI: menuIconURI, blockIconURI: blockIconURI, + showStatusButton: true, blocks: [ { opcode: 'whenButtonPressed',