Fix "Manage Attachments" menu being disabled incorrectly
We were originally going to put it in the File menu, and its disabled state was only being updated when the File menu was opened after selecting an item instead of the Tools menu. But we shouldn't actually disable it anyway, only its contents (which we're doing elsewhere), so just take this out.
This commit is contained in:
parent
0f60207287
commit
b15313fc3e
1 changed files with 0 additions and 13 deletions
|
@ -296,19 +296,6 @@ const ZoteroStandalone = new function() {
|
|||
};
|
||||
|
||||
this.onFileMenuOpen = function () {
|
||||
var active = false;
|
||||
try {
|
||||
let zp = Zotero.getActiveZoteroPane();
|
||||
if (zp) {
|
||||
active = !!zp.getSelectedItems().filter((item) => {
|
||||
return item.isAttachment()
|
||||
|| (item.isRegularItem() && item.getAttachments().length);
|
||||
}).length;
|
||||
}
|
||||
}
|
||||
catch (e) {}
|
||||
this.updateMenuItemEnabled('manage-attachments-menu', active);
|
||||
|
||||
// PDF annotation transfer ("Import Annotation"/"Store Annotations in File")
|
||||
let reader = Zotero.Reader.getByTabID(Zotero_Tabs.selectedID);
|
||||
if (reader) {
|
||||
|
|
Loading…
Reference in a new issue