summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ball <cycomachead@gmail.com>2014-12-04 03:01:40 -0800
committerMichael Ball <cycomachead@gmail.com>2014-12-04 03:01:40 -0800
commit2b2ff77823d085a9bd6e4a8bca8553ba72922e06 (patch)
treebfc3e84a893c0de2eecc5292ba4a704099a3b8b3
parent19736839b7c73af5ae3b40d826bc161a78dd0114 (diff)
downloadsnap-2b2ff77823d085a9bd6e4a8bca8553ba72922e06.tar.gz
snap-2b2ff77823d085a9bd6e4a8bca8553ba72922e06.zip
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';
+ }
}
}
}