Fix test breakage after f68818387
This commit is contained in:
parent
f688183878
commit
8d93fd4c8c
2 changed files with 25 additions and 5 deletions
|
@ -284,7 +284,7 @@
|
|||
this.isMergePane = this.id == 'merge-pane';
|
||||
|
||||
if (!this.isMergePane) {
|
||||
this.groupbox.onclick = this.handleClick.bind(this);
|
||||
this.groupbox.onclick = this.click.bind(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -338,7 +338,7 @@
|
|||
var button = this._class('choose-button');
|
||||
button.label = Zotero.getString('sync.conflict.chooseThisVersion');
|
||||
if (this.showButton) {
|
||||
button.onclick = this.handleClick.bind(this);
|
||||
button.onclick = this.click.bind(this);
|
||||
button.style.visibility = 'visible';
|
||||
}
|
||||
else {
|
||||
|
@ -421,7 +421,7 @@
|
|||
this.groupbox.setAttribute('tabindex', 0);
|
||||
this.groupbox.addEventListener('keypress', (event) => {
|
||||
if (event.key == " ") {
|
||||
this.handleClick();
|
||||
this.click();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -450,7 +450,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
handleClick() {
|
||||
click() {
|
||||
this.parent.choosePane(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -976,7 +976,27 @@ Zotero.Sync.Storage.Local = {
|
|||
zipReader = null
|
||||
Cu.forceGC();
|
||||
|
||||
zipFile.remove(false);
|
||||
// TEMP: Allow deleting to fail on Windows
|
||||
if (Zotero.isWin) {
|
||||
try {
|
||||
zipFile.remove(false);
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
// Try again in 30 seconds
|
||||
setTimeout(() => {
|
||||
try {
|
||||
zipFile.remove(false);
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
}, 30000);
|
||||
}
|
||||
}
|
||||
else {
|
||||
zipFile.remove(false);
|
||||
}
|
||||
|
||||
return returnFile;
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue