diff --git a/chrome/content/zotero/preferences/preferences_general.js b/chrome/content/zotero/preferences/preferences_general.js index a0f8706ba0..883cf8e7f1 100644 --- a/chrome/content/zotero/preferences/preferences_general.js +++ b/chrome/content/zotero/preferences/preferences_general.js @@ -40,9 +40,16 @@ Zotero_Preferences.General = { document.getElementById('noteFontSize').value = Zotero.Prefs.get('note.fontSize'); + this.updateAutoRenameFilesUI(); this._updateFileHandlerUI(); }, + updateAutoRenameFilesUI: function () { + setTimeout(() => { + document.getElementById('rename-linked-files').disabled = !Zotero.Prefs.get('autoRenameFiles'); + }); + }, + // // File handlers // diff --git a/chrome/content/zotero/preferences/preferences_general.xul b/chrome/content/zotero/preferences/preferences_general.xul index 1233e63907..aa021b424f 100644 --- a/chrome/content/zotero/preferences/preferences_general.xul +++ b/chrome/content/zotero/preferences/preferences_general.xul @@ -38,6 +38,7 @@ + @@ -118,7 +119,13 @@ preference="pref-automaticSnapshots"/> - + +