Item Tree: Do not display Title in the columnpicker

This commit is contained in:
Adomas Venčkauskas 2021-04-14 10:16:35 +03:00 committed by Dan Stillman
parent af597d943b
commit 2b6c7277f7
2 changed files with 2 additions and 0 deletions

View file

@ -3155,6 +3155,7 @@ var ItemTree = class ItemTree extends LibraryTree {
const columns = this._getColumns();
for (let i = 0; i < columns.length; i++) {
const column = columns[i];
if (column.inMenu === false) continue;
let menuitem = doc.createElementNS(ns, 'menuitem');
menuitem.setAttribute('type', 'checkbox');
menuitem.setAttribute('label', Zotero.Intl.strings[column.label]);

View file

@ -35,6 +35,7 @@ const COLUMNS = [
label: "zotero.items.title_column",
ignoreInColumnPicker: "true",
flex: 4,
inMenu: false,
zoteroPersist: new Set(["width", "hidden", "sortDirection"])
},
{