Fix translator updates

This commit is contained in:
Dan Stillman 2016-08-03 01:26:19 -04:00
parent 90cc7efef4
commit c5dad533a1

View file

@ -446,10 +446,9 @@ Zotero.Translators = new function() {
var translator = Zotero.Translators.get(metadata.translatorID);
var sameFile = translator && destFile == translator.path;
if (sameFile) return;
var exists = yield OS.File.exists(destFile);
if (exists) {
if (!sameFile && exists) {
var msg = "Overwriting translator with same filename '"
+ fileName + "'";
Zotero.debug(msg, 1);