diff options
| author | Michael Ball <cycomachead@gmail.com> | 2014-12-04 03:01:40 -0800 |
|---|---|---|
| committer | Michael Ball <cycomachead@gmail.com> | 2014-12-04 03:01:40 -0800 |
| commit | 2b2ff77823d085a9bd6e4a8bca8553ba72922e06 (patch) | |
| tree | bfc3e84a893c0de2eecc5292ba4a704099a3b8b3 /gui.js | |
| parent | 19736839b7c73af5ae3b40d826bc161a78dd0114 (diff) | |
| download | snap-yow-2b2ff77823d085a9bd6e4a8bca8553ba72922e06.tar.gz snap-yow-2b2ff77823d085a9bd6e4a8bca8553ba72922e06.zip | |
Really fix setting the cloud as default save location when logged in
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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'; + } } } } |
