mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Persist backpack in block context menu
This commit is contained in:
@@ -842,7 +842,7 @@ Blockly.BlockSvg.prototype.showContextMenu_ = function(e) {
|
||||
callback: function() {
|
||||
if (Blockly.selected && Blockly.selected.isDeletable() &&
|
||||
Blockly.selected.workspace == Blockly.mainWorkspace) {
|
||||
Blockly.getMainWorkspace().getBackpack().addToBackpack(Blockly.selected);
|
||||
Blockly.getMainWorkspace().getBackpack().addToBackpack(Blockly.selected, true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user