summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2014-12-04 15:47:38 +0100
committerJens Mönig <jens@moenig.org>2014-12-04 15:47:38 +0100
commit59ee043321e2b96bacc98564487c1d1c7094f014 (patch)
tree5733552b9520a3483244f8052afc86c31aceb45c
parentad1fe34d1ed900e1e4fd75e5c5666f6ab28b9c80 (diff)
parent2b2ff77823d085a9bd6e4a8bca8553ba72922e06 (diff)
downloadsnap-59ee043321e2b96bacc98564487c1d1c7094f014.tar.gz
snap-59ee043321e2b96bacc98564487c1d1c7094f014.zip
Merge pull request #665 from cycomachead/cloud-default
Really fix setting the cloud as default save location when logged in
-rw-r--r--gui.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui.js b/gui.js
index b3bb460..8c56e1e 100644
--- a/gui.js
+++ b/gui.js
@@ -190,7 +190,7 @@ IDE_Morph.prototype.init = function (isAutoFill) {
// additional properties:
this.cloudMsg = null;
- this.source = SnapCloud.username ? 'cloud' : 'local';
+ this.source = 'local';
this.serializer = new SnapSerializer();
this.globalVariables = new VariableFrame();
@@ -241,6 +241,9 @@ IDE_Morph.prototype.openIn = function (world) {
if (usr) {
SnapCloud.username = usr.username || null;
SnapCloud.password = usr.password || null;
+ if (SnapCould.username) {
+ this.source = 'cloud';
+ }
}
}
}