From 516d2306472530f89f5989eac1ed313ea11fc182 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Mon, 15 Sep 2025 22:56:52 +0200 Subject: [PATCH] Fix "Rename from Parent" not visible after the parent item changes Close #5542 --- chrome/content/zotero/elements/attachmentBox.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js index 2c46d8b41b..31eca211b9 100644 --- a/chrome/content/zotero/elements/attachmentBox.js +++ b/chrome/content/zotero/elements/attachmentBox.js @@ -319,6 +319,10 @@ } notify(event, _type, ids, _extraData) { + if (ids.includes(this.item?.parentItem?.id)) { + // Ensure the "Rename from Parent" button is visible after the parent item changes (#5542) + this._resetRenderedFlags(); + } if (event != 'modify' || !this.item?.id || !ids.includes(this.item.id)) return; // Wait for the render finish and then refresh