We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb4d04 commit dc6f9c5Copy full SHA for dc6f9c5
plugins/workspace-backpack/src/backpack_helpers.ts
@@ -108,11 +108,7 @@ function registerCopyToBackpack(disablePreconditionContainsCheck: boolean) {
108
if (!scope.block) {
109
return '';
110
}
111
- const backpack = scope.block.workspace
112
- .getComponentManager()
113
- .getComponent('backpack') as Backpack;
114
- const backpackCount = backpack.getCount();
115
- return `${Blockly.Msg['COPY_TO_BACKPACK']} (${backpackCount})`;
+ return Blockly.Msg['COPY_TO_BACKPACK'];
116
},
117
preconditionFn: function (scope: Blockly.ContextMenuRegistry.Scope) {
118
if (!scope.block) return 'hidden';
0 commit comments