summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-12-07 11:51:38 +0100
committerGubolin <gubolin@fantasymail.de>2014-12-07 11:51:38 +0100
commit54da483ee90eaac2f92d6aa1ee9394b3a77d2181 (patch)
treebbeec59b6c2c4b7896386865cea5750911e63799 /gui.js
parent64a457873756139d72c4ac33ce084dec2e9ef725 (diff)
parente23a6ab4b3ebf0a4309a65ce615ffc010b383e4e (diff)
downloadsnap-54da483ee90eaac2f92d6aa1ee9394b3a77d2181.tar.gz
snap-54da483ee90eaac2f92d6aa1ee9394b3a77d2181.zip
Merge remote-tracking branch 'origin/issue_557' into development
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui.js b/gui.js
index fc83b2e..752b676 100644
--- a/gui.js
+++ b/gui.js
@@ -3455,6 +3455,12 @@ IDE_Morph.prototype.setLanguage = function (lang, callback) {
IDE_Morph.prototype.reflectLanguage = function (lang, callback) {
var projectData;
SnapTranslator.language = lang;
+ this.world().children.forEach(function (morph) {
+ if (morph instanceof BlockEditorMorph) {
+ morph.updateDefinition(); // save custom blocks
+ // otherwise, initBlocks() will reset the definition
+ }
+ });
if (!this.loadNewProject) {
if (Process.prototype.isCatchingErrors) {
try {