Replace use of isRenderingOn with Blockly event management
When the 2017 Blockly update was done, it used isRenderingOn to determine when to position and render the blocks. This was to optimize the interaction between the load/upgrade process and workspace resizes. However, in rare instances it seems to result in blocks not being placed correctly. This change removes the special handling of upgrading. Instead, it disables and enables the Blockly event system during a load/upgrade operation. At the end of the upgrade process (if needed), it will also force a save of the blocks workspace. Fixes #1071 Change-Id: I6bec41dd67bc6371e794e93850ea1455b9acf8c7
Showing
Please register or sign in to comment