Rename PDF tab title pref to include reader
In case we have a separate pref for notes or something else
This commit is contained in:
parent
a5fb64f295
commit
6d0e5959e6
2 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ class ReaderInstance {
|
||||||
|
|
||||||
this._prefObserverIDs = [
|
this._prefObserverIDs = [
|
||||||
Zotero.Prefs.registerObserver('fontSize', this._handleFontSizePrefChange),
|
Zotero.Prefs.registerObserver('fontSize', this._handleFontSizePrefChange),
|
||||||
Zotero.Prefs.registerObserver('tabs.title', this._handleTabTitlePrefChange)
|
Zotero.Prefs.registerObserver('tabs.title.reader', this._handleTabTitlePrefChange)
|
||||||
];
|
];
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -179,7 +179,7 @@ class ReaderInstance {
|
||||||
let attachment = await parentItem.getBestAttachment();
|
let attachment = await parentItem.getBestAttachment();
|
||||||
if (attachment && attachment.id === this._itemID) {
|
if (attachment && attachment.id === this._itemID) {
|
||||||
let parts = [];
|
let parts = [];
|
||||||
let type = Zotero.Prefs.get('tabs.title');
|
let type = Zotero.Prefs.get('tabs.title.reader');
|
||||||
let creator = parentItem.getField('firstCreator');
|
let creator = parentItem.getField('firstCreator');
|
||||||
let year = parentItem.getField('year');
|
let year = parentItem.getField('year');
|
||||||
let title = parentItem.getDisplayTitle();
|
let title = parentItem.getDisplayTitle();
|
||||||
|
|
|
@ -213,4 +213,4 @@ pref("extensions.zotero.annotations.noteTemplates.note", "<p>{{citation}} {{comm
|
||||||
pref("extensions.zotero.scaffold.eslint.enabled", true);
|
pref("extensions.zotero.scaffold.eslint.enabled", true);
|
||||||
|
|
||||||
// Tabs
|
// Tabs
|
||||||
pref("extensions.zotero.tabs.title", "titleCreatorYear");
|
pref("extensions.zotero.tabs.title.reader", "titleCreatorYear");
|
||||||
|
|
Loading…
Reference in a new issue