gonfunko / scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
https://scratchfoundation.github.io/scratch-gui/develop/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

fix: avoid clearing the state of the sensing_of block by refreshing the toolbox #28

Closed gonfunko closed 1 month ago

gonfunko commented 1 month ago

This PR fixes part of https://github.com/gonfunko/scratch-blocks/issues/102, specifically the issue where changing the sprite/stage dropdown option in the sensing_of block in the flyout would immediately be reset. The block has a complex implementation spread across scratch-blocks, -gui, and -vm, and when the option is changed the variables in the workspace get reconfigured which triggers a toolbox refresh which clears the newly-set state of the block. To fix this, toolbox updates are temporarily paused while the workspace is mid-refresh.