Skip to content

Commit dc6f9c5

Browse files
authored
fix: remove backpack count from copy to message (#2597)
mit-cml/workspace-multiselect#43
1 parent ffb4d04 commit dc6f9c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/workspace-backpack/src/backpack_helpers.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ function registerCopyToBackpack(disablePreconditionContainsCheck: boolean) {
108108
if (!scope.block) {
109109
return '';
110110
}
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})`;
111+
return Blockly.Msg['COPY_TO_BACKPACK'];
116112
},
117113
preconditionFn: function (scope: Blockly.ContextMenuRegistry.Scope) {
118114
if (!scope.block) return 'hidden';

0 commit comments

Comments
 (0)