open dialog: Dont show cloud projects if user has since switch panes

dev
Michael Ball 2015-12-21 16:06:48 -08:00
rodzic df54bfb00e
commit 2c49bea5d4
1 zmienionych plików z 4 dodań i 1 usunięć

5
gui.js
Wyświetl plik

@ -5112,7 +5112,10 @@ ProjectDialogMorph.prototype.setSource = function (source) {
this.projectList = [];
SnapCloud.getProjectList(
function (projectList) {
myself.installCloudProjectList(projectList);
// Don't show cloud projects if user has since switch panes.
if (myself.source === 'cloud') {
myself.installCloudProjectList(projectList);
}
msg.destroy();
},
function (err, lbl) {