Sidenav: Only show context menu with "Pin Section" on section buttons

Don't show on Locate menu button

Addresses #4253
This commit is contained in:
Dan Stillman 2024-06-21 01:00:03 -04:00
parent bb3d9ccf8f
commit 6b5b47a83a

View file

@ -192,7 +192,7 @@
init() {
this._buttonContainer = this.querySelector('.inherit-flex');
for (let toolbarbutton of this.querySelectorAll('toolbarbutton')) {
for (let toolbarbutton of this.querySelectorAll('toolbarbutton[data-pane]')) {
let pane = toolbarbutton.dataset.pane;
let pinnable = this.isPanePinnable(pane);