From 6d0e5959e63c550bed73c4369486d260c3499278 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 2 Feb 2023 23:39:55 -0500 Subject: [PATCH] Rename PDF tab title pref to include `reader` In case we have a separate pref for notes or something else --- chrome/content/zotero/xpcom/reader.js | 4 ++-- defaults/preferences/zotero.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/reader.js b/chrome/content/zotero/xpcom/reader.js index 5661965ff2..5f0c712ca6 100644 --- a/chrome/content/zotero/xpcom/reader.js +++ b/chrome/content/zotero/xpcom/reader.js @@ -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(); diff --git a/defaults/preferences/zotero.js b/defaults/preferences/zotero.js index 76b097b474..4c2c23ad00 100644 --- a/defaults/preferences/zotero.js +++ b/defaults/preferences/zotero.js @@ -213,4 +213,4 @@ pref("extensions.zotero.annotations.noteTemplates.note", "

{{citation}} {{comm pref("extensions.zotero.scaffold.eslint.enabled", true); // Tabs -pref("extensions.zotero.tabs.title", "titleCreatorYear"); +pref("extensions.zotero.tabs.title.reader", "titleCreatorYear");