diff --git a/src/blocks.js b/src/blocks.js index 9992d136..0aed8cbb 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -3363,7 +3363,12 @@ BlockMorph.prototype.relabel = function (alternativeSelectors) { block.addShadow(new Point(3, 3)); menu.addItem( block.doWithAlpha(1, () => block.fullImage()), - () => this.setSelector(selector, -offset) + () => { + this.setSelector(selector, -offset); + this.scriptTarget().parentThatIsA( + IDE_Morph + ).recordUnsavedChanges(); + } ); }); menu.popup(this.world(), this.bottomLeft().subtract(new Point( diff --git a/src/byob.js b/src/byob.js index 1ad438c3..fe0abb0a 100644 --- a/src/byob.js +++ b/src/byob.js @@ -1352,6 +1352,9 @@ CustomCommandBlockMorph.prototype.relabel = function (alternatives) { () => { this.definition = def; this.refresh(); + this.scriptTarget().parentThatIsA( + IDE_Morph + ).recordUnsavedChanges(); } ); });