Really fix setting the cloud as default save location when logged in

pull/3/merge
Michael Ball 2014-12-04 03:01:40 -08:00
rodzic 19736839b7
commit 2b2ff77823
1 zmienionych plików z 4 dodań i 1 usunięć

5
gui.js
Wyświetl plik

@ -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';
}
}
}
}