summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2015-05-01 12:00:56 -0400
committerJens Mönig <jens@moenig.org>2015-05-01 12:00:56 -0400
commit052a3e07b31d59a88343faa55001314ad058820e (patch)
tree0be31e496b7437d33c80d2ee865accfe6082d6e0
parentb6efcaf17c0230d5eea3f3d8a6d30e142c8d67cf (diff)
downloadsnap-052a3e07b31d59a88343faa55001314ad058820e.tar.gz
snap-052a3e07b31d59a88343faa55001314ad058820e.zip
hide “save to disk” option behind shift-click again (has issues in Chrome)
-rw-r--r--gui.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/gui.js b/gui.js
index 50f3cb2..f8c218c 100644
--- a/gui.js
+++ b/gui.js
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.gui = '2015-March-15';
+modules.gui = '2015-May-01';
// Declarations
@@ -2384,12 +2384,15 @@ IDE_Morph.prototype.projectMenu = function () {
menu.addItem('New', 'createNewProject');
menu.addItem('Open...', 'openProjectsBrowser');
menu.addItem('Save', "save");
- menu.addItem(
- 'Save to disk',
- 'saveProjectToDisk',
- 'store this project\nin the downloads folder\n'
- + '(in supporting browsers)'
- );
+ if (shiftClicked) {
+ menu.addItem(
+ 'Save to disk',
+ 'saveProjectToDisk',
+ 'store this project\nin the downloads folder\n'
+ + '(in supporting browsers)',
+ new Color(100, 0, 0)
+ );
+ }
menu.addItem('Save As...', 'saveProjectsBrowser');
menu.addLine();
menu.addItem(