Only show "Find Available PDF" in dev builds
This commit is contained in:
parent
c7076ab935
commit
2b6d24bc75
2 changed files with 5 additions and 3 deletions
|
@ -72,7 +72,7 @@ var Zotero_Lookup = new function () {
|
|||
if (Zotero.Prefs.get('downloadAssociatedFiles')
|
||||
&& !newItems.find(x => x.isImportedAttachment())
|
||||
// TEMP: Limit to dev builds
|
||||
&& (Zotero.version.includes('beta') || Zotero.version.includes('SOURCE'))) {
|
||||
&& Zotero.isDevBuild) {
|
||||
try {
|
||||
yield Zotero.Attachments.addAvailablePDF(newItems[0]);
|
||||
}
|
||||
|
|
|
@ -2881,7 +2881,8 @@ var ZoteroPane = new function()
|
|||
}
|
||||
}
|
||||
|
||||
if (canFindPDF) {
|
||||
// TEMP: Limit to dev builds
|
||||
if (canFindPDF && Zotero.isDevBuild) {
|
||||
show.push(m.findPDF, m.sep3);
|
||||
}
|
||||
|
||||
|
@ -2940,7 +2941,8 @@ var ZoteroPane = new function()
|
|||
show.push(m.addNote, m.addAttachments, m.sep2);
|
||||
}
|
||||
|
||||
if (Zotero.Utilities.Internal.canFindPDFForItem(item)) {
|
||||
// TEMP: Limit to dev builds
|
||||
if (Zotero.Attachments.canFindPDFForItem(item) && Zotero.isDevBuild) {
|
||||
show.push(m.findPDF, m.sep3);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue