diff --git a/HISTORY.md b/HISTORY.md index aaa9b2b9..7bd08e98 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -5,6 +5,9 @@ * show message senders and receivers from the blocks context menu, thanks, Bernat! * new "Database" library operating on localstore, thanks, Jadga! +### 2020-08-18 +* blocks: tweaked menu separator line above "senders.../receivers..." to only show once + ### 2020-08-08 * blocks: changed "show senders/receivers" menu entry to "senders.../receivers..." * gui: tweaked SpriteIconMorph>>flash() for flat design mode diff --git a/snap.html b/snap.html index def5516b..eab5dc56 100755 --- a/snap.html +++ b/snap.html @@ -8,7 +8,7 @@ - + diff --git a/src/blocks.js b/src/blocks.js index 5b4fdea0..72c712fe 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -158,7 +158,7 @@ CustomCommandBlockMorph, SymbolMorph, ToggleButtonMorph, DialMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2020-August-08'; +modules.blocks = '2020-August-18'; var SyntaxElementMorph; var BlockMorph; @@ -2731,6 +2731,7 @@ BlockMorph.prototype.userMenu = function () { var menu = new MenuMorph(this), world = this.world(), myself = this, + hasLine = false, shiftClicked = world.currentKey === 16, proc = this.activeProcess(), top = this.topBlock(), @@ -3097,6 +3098,7 @@ BlockMorph.prototype.userMenu = function () { 'receiveOnClone', 'receiveGo'], this.selector )) { + hasLine = true; menu.addLine(); menu.addItem( (this.selector.indexOf('receive') === 0 ? @@ -3111,7 +3113,7 @@ BlockMorph.prototype.userMenu = function () { && (top instanceof HatBlockMorph))) { return menu; } - menu.addLine(); + if (!hasLine) {menu.addLine(); } menu.addItem("ringify", 'ringify'); if (StageMorph.prototype.enableCodeMapping) { menu.addLine();