Fix sidenav button visibilities update bugs

This commit is contained in:
windingwind 2024-01-25 11:28:26 +08:00 committed by Dan Stillman
parent 7fe01d6c03
commit 665f812bd1

View file

@ -422,6 +422,12 @@
}
render() {
// TEMP: only render sidenav when pane is visible
if (this.container.id === "zotero-view-item"
&& document.querySelector("#zotero-item-pane-content").selectedIndex !== "1"
) {
return;
}
let contextNotesPaneVisible = this._contextNotesPaneVisible;
let pinnedPane = this.pinnedPane;
for (let toolbarbutton of this.querySelectorAll('toolbarbutton')) {