kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #665 from cycomachead/cloud-default
Really fix setting the cloud as default save location when logged inpull/3/merge
commit
59ee043321
5
gui.js
5
gui.js
|
@ -190,7 +190,7 @@ IDE_Morph.prototype.init = function (isAutoFill) {
|
||||||
|
|
||||||
// additional properties:
|
// additional properties:
|
||||||
this.cloudMsg = null;
|
this.cloudMsg = null;
|
||||||
this.source = SnapCloud.username ? 'cloud' : 'local';
|
this.source = 'local';
|
||||||
this.serializer = new SnapSerializer();
|
this.serializer = new SnapSerializer();
|
||||||
|
|
||||||
this.globalVariables = new VariableFrame();
|
this.globalVariables = new VariableFrame();
|
||||||
|
@ -241,6 +241,9 @@ IDE_Morph.prototype.openIn = function (world) {
|
||||||
if (usr) {
|
if (usr) {
|
||||||
SnapCloud.username = usr.username || null;
|
SnapCloud.username = usr.username || null;
|
||||||
SnapCloud.password = usr.password || null;
|
SnapCloud.password = usr.password || null;
|
||||||
|
if (SnapCould.username) {
|
||||||
|
this.source = 'cloud';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue