From ba62f758f1df7465fc9ac208a92fc6063e1e608c Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 7 Dec 2018 09:15:11 +0100 Subject: [PATCH] fixed #2284 executing "inherit" should not un-hide palette in presentation mode --- HISTORY.md | 5 +++++ snap.html | 4 ++-- src/gui.js | 8 ++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 33bac078..a1e672d7 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,10 @@ # Snap! (BYOB) History +## in development + +### 2018-12-07 +* GUI: fixed #2284 (executing "inherit" should not un-hide palette in presentation mode) + ## v4.2.2.9 ### 2018-11-29 * GUI: prepared release diff --git a/snap.html b/snap.html index 982e7972..f24b9b1e 100755 --- a/snap.html +++ b/snap.html @@ -2,14 +2,14 @@ - Snap! Build Your Own Blocks 4.2.2.9 + Snap! Build Your Own Blocks 4.2.2.10 - dev - - + diff --git a/src/gui.js b/src/gui.js index b58864e5..3915aa39 100644 --- a/src/gui.js +++ b/src/gui.js @@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2018-November-29'; +modules.gui = '2018-December-07'; // Declarations @@ -2027,6 +2027,10 @@ IDE_Morph.prototype.refreshPalette = function (shouldIgnorePosition) { var oldTop = this.palette.contents.top(); this.createPalette(); + if (this.isAppMode) { + this.palette.hide(); + return; + } this.fixLayout('refreshPalette'); if (!shouldIgnorePosition) { this.palette.contents.setTop(oldTop); @@ -3552,7 +3556,7 @@ IDE_Morph.prototype.aboutSnap = function () { module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn, world = this.world(); - aboutTxt = 'Snap! 4.2.2.9\nBuild Your Own Blocks\n\n' + aboutTxt = 'Snap! 4.2.2.10 - dev -\nBuild Your Own Blocks\n\n' + 'Copyright \u24B8 2018 Jens M\u00F6nig and ' + 'Brian Harvey\n' + 'jens@moenig.org, bh@cs.berkeley.edu\n\n'