Skip to content

Commit

Permalink
preparing PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalacho-mit committed May 10, 2024
1 parent a4d85bc commit e02e120
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/scratch-gui/src/containers/blocks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ class Blocks extends React.Component {
this.props.vm.refreshWorkspace();
this.requestToolboxUpdate();
this.withToolboxUpdates(() => {
this.flyout = this.workspace.getFlyout();
this.flyout.setRecyclingEnabled(true);
this.workspace.getFlyout().setRecyclingEnabled(true);

// Moved from `componentDidMount` due to strange blockly error after changing locale.
// Worth retesting after updating scratch, as this may have been addressed in later blockly versions.
const registerButtonCallback = (event) =>
this.workspace.getFlyout()
? this.workspace.registerButtonCallback(event, () => { this.props.vm.runtime.emit(event) })
Expand Down

0 comments on commit e02e120

Please sign in to comment.