fixed project recovery dialog

pull/95/head
jmoenig 2020-05-05 16:53:22 +02:00
rodzic 09664d8a87
commit 78e2bc419d
2 zmienionych plików z 13 dodań i 4 usunięć

Wyświetl plik

@ -6838,8 +6838,9 @@ ProjectDialogMorph.prototype.clearDetails = function () {
ProjectDialogMorph.prototype.recoveryDialog = function () {
var proj = this.listField.selected;
if (!proj) {return; }
new ProjectRecoveryDialogMorph(this.ide, proj.projectname, this).popUp();
this.removeShadow();
this.hide();
new ProjectRecoveryDialogMorph(this.ide, proj.projectname, this).popUp();
};
ProjectDialogMorph.prototype.openProject = function () {
@ -7278,7 +7279,9 @@ ProjectRecoveryDialogMorph.prototype.buildContents = function () {
this.preview.contrast = InputFieldMorph.prototype.contrast;
this.preview.render = function (ctx) {
InputFieldMorph.prototype.render.call(this, ctx);
if (this.texture) {
if (this.cachedTexture) {
this.renderCachedTexture(ctx);
} else if (this.texture) {
this.renderTexture(this.texture, ctx);
}
};
@ -7478,6 +7481,10 @@ ProjectRecoveryDialogMorph.prototype.fixLayout = function () {
this.buttons.setCenter(this.center());
this.buttons.setBottom(this.bottom() - this.padding);
}
// refresh shadow
this.removeShadow();
this.addShadow();
};
// LibraryImportDialogMorph ///////////////////////////////////////////

Wyświetl plik

@ -1182,7 +1182,7 @@
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
var morphicVersion = '2020-May-01';
var morphicVersion = '2020-May-05';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = true;
@ -8277,7 +8277,9 @@ MenuMorph.prototype.destroy = function () {
if (this.hasFocus) {
this.world.keyboardFocus = null;
}
this.world.activeMenu = null;
if (!this.isListContents) {
this.world.activeMenu = null;
}
MenuMorph.uber.destroy.call(this);
};