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 = [
|
||||
Zotero.Prefs.registerObserver('fontSize', this._handleFontSizePrefChange),
|
||||
Zotero.Prefs.registerObserver('tabs.title', this._handleTabTitlePrefChange)
|
||||
Zotero.Prefs.registerObserver('tabs.title.reader', this._handleTabTitlePrefChange)
|
||||
];
|
||||
|
||||
return true;
|
||||
|
@ -179,7 +179,7 @@ class ReaderInstance {
|
|||
let attachment = await parentItem.getBestAttachment();
|
||||
if (attachment && attachment.id === this._itemID) {
|
||||
let parts = [];
|
||||
let type = Zotero.Prefs.get('tabs.title');
|
||||
let type = Zotero.Prefs.get('tabs.title.reader');
|
||||
let creator = parentItem.getField('firstCreator');
|
||||
let year = parentItem.getField('year');
|
||||
let title = parentItem.getDisplayTitle();
|
||||
|
|
|
@ -213,4 +213,4 @@ pref("extensions.zotero.annotations.noteTemplates.note", "<p>{{citation}} {{comm
|
|||
pref("extensions.zotero.scaffold.eslint.enabled", true);
|
||||
|
||||
// Tabs
|
||||
pref("extensions.zotero.tabs.title", "titleCreatorYear");
|
||||
pref("extensions.zotero.tabs.title.reader", "titleCreatorYear");
|
||||
|
|
Loading…
Reference in a new issue