Skip to content

Commit

Permalink
don't recycle variable blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Jan 26, 2024
1 parent 50a7194 commit 0733da5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions newblocks/plugins/flyout/verticalFlyout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ class CachedFlyout extends Blockly.VerticalFlyout {
}

protected blockIsRecyclable_(block: Blockly.BlockSvg) {
switch (block.type) {
case "variables_get":
case "variables_set":
case "variables_change":
return false;
}
return true;
}

Expand Down

0 comments on commit 0733da5

Please sign in to comment.