Scaffold: Await more async functions

Might help prevent a deadlock I experienced when switching back to Zotero after
changing a translator file externally (although I can't reproduce it).
This commit is contained in:
Abe Jellinek 2023-01-23 12:32:30 -05:00
parent 786d3db880
commit 4865f8afca

View file

@ -258,7 +258,7 @@ var Scaffold = new function () {
null, null, {}
);
if (index == 1) {
this.load(translatorID);
await this.load(translatorID);
}
else {
_lastModifiedTime = modifiedTime;
@ -785,7 +785,7 @@ var Scaffold = new function () {
_lastModifiedTime = new Date().getTime();
this.updateModelMarkers(path);
this.reloadTranslators();
await this.reloadTranslators();
};
/**