diff options
| author | jmoenig <jens@moenig.org> | 2013-07-30 15:19:47 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2013-07-30 15:19:47 +0200 |
| commit | e062dfe54862012a6d2fbe4044462c8bc2696711 (patch) | |
| tree | 27e4db9b82bf5c1077987fafd2ad55b3155e5fdf | |
| parent | a58ffccb64e67d63c2fed1d8e0336d3c1dd36493 (diff) | |
| download | snap-e062dfe54862012a6d2fbe4044462c8bc2696711.tar.gz snap-e062dfe54862012a6d2fbe4044462c8bc2696711.zip | |
fixed #104
| -rw-r--r-- | gui.js | 15 | ||||
| -rwxr-xr-x | history.txt | 1 |
2 files changed, 9 insertions, 7 deletions
@@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-July-10'; +modules.gui = '2013-July-30'; // Declarations @@ -1434,6 +1434,7 @@ IDE_Morph.prototype.fixLayout = function (situation) { IDE_Morph.prototype.setProjectName = function (string) { this.projectName = string; + this.hasChangedMedia = true; this.controlBar.updateLabel(); }; @@ -2307,7 +2308,7 @@ IDE_Morph.prototype.projectMenu = function () { menu.addItem( 'Libraries...', function () { - var menu = new MenuMorph(this, 'Import library'); + var libMenu = new MenuMorph(this, 'Import library'); function loadLib(name) { var url = 'http://snap.berkeley.edu/snapsource/libraries/' @@ -2322,31 +2323,31 @@ IDE_Morph.prototype.projectMenu = function () { throw new Error('unable to retrieve ' + url); } - menu.addItem( + libMenu.addItem( 'Iteration, composition', function () { loadLib('iteration-composition'); } ); - menu.addItem( + libMenu.addItem( 'List utilities', function () { loadLib('list-utilities'); } ); - menu.addItem( + libMenu.addItem( 'Variadic reporters', function () { loadLib('variadic-reporters'); } ); - menu.addItem( + libMenu.addItem( 'Words, sentences', function () { loadLib('word-sentence'); } ); - menu.popup(world, pos); + libMenu.popup(world, pos); } ); diff --git a/history.txt b/history.txt index bd9b0fc..a791c96 100755 --- a/history.txt +++ b/history.txt @@ -1828,3 +1828,4 @@ ______ ------ * Blocks: Made it harder to drop reporters on the variadic input per se (as opposed to into one of its slots) in (default) "prefer empty slot drops" setting * Blocks, Threads, Objects: PAUSE primitive command block +* GUI: fixed #104 (storing a cloud project under another name causes media loss) |
