set "unsavedEdits" flag to true when restoring a backup

pull/95/head
jmoenig 2020-12-20 14:49:01 +01:00
rodzic c43aee639e
commit 387c96f421
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -2711,7 +2711,10 @@ IDE_Morph.prototype.restore = function () {
if (localStorage['-snap-bakuser-'] == username) { // null == undefined
bak = localStorage['-snap-backup-'];
if (bak) {
this.backup(() => this.openProjectString(bak));
this.backup(() => {
this.openProjectString(bak);
this.hasUnsavedEdits = true;
});
}
}
}