Fix attachments section not updated when attachments are changed (#3992)
fix: #3989
This commit is contained in:
parent
80ac628d98
commit
e2b72944be
2 changed files with 9 additions and 2 deletions
|
@ -96,6 +96,9 @@
|
|||
}
|
||||
|
||||
notify(action, type, ids) {
|
||||
if (ids.includes(this._item?.id)) {
|
||||
this._resetRenderedFlags();
|
||||
}
|
||||
if (!this._item?.isRegularItem()) return;
|
||||
|
||||
this._updateAttachmentIDs().then(() => {
|
||||
|
|
|
@ -95,11 +95,15 @@ class ItemPaneSectionElementBase extends XULElementBase {
|
|||
return false;
|
||||
}
|
||||
|
||||
async _forceRenderAll() {
|
||||
if (this.hidden) return;
|
||||
_resetRenderedFlags() {
|
||||
// Clear cached flags to allow re-rendering
|
||||
delete this._syncRenderItemID;
|
||||
delete this._asyncRenderItemID;
|
||||
}
|
||||
|
||||
async _forceRenderAll() {
|
||||
if (this.hidden) return;
|
||||
this._resetRenderedFlags();
|
||||
if (this.render) this.render();
|
||||
if (this.asyncRender) await this.asyncRender();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue