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.
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.