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

refactor: simplify toolbox refreshing behavior #14

Closed gonfunko closed 5 months ago

gonfunko commented 5 months ago

This PR simplifies toolbox refresh management. Previously, scratch-gui was patching the toolbox to prevent refreshes, and directly toggling a private ivar to work around a setter with side effects. Now, https://github.com/gonfunko/scratch-blocks/pull/77 just disables the normal toolbox refresh path in a subclass, and adds a forceRefresh method used here.