Don't show multiple separators in PDF reader annotation context menu

This commit is contained in:
Martynas Bagdonas 2022-01-04 19:11:38 +02:00
parent 035aac30f2
commit f2e9efaf1d

View file

@ -487,7 +487,9 @@ class ReaderInstance {
popup.appendChild(menuitem);
}
// Separator
popup.appendChild(this._window.document.createElement('menuseparator'));
if (data.enableEditPageNumber || data.enableEditHighlightedText) {
popup.appendChild(this._window.document.createElement('menuseparator'));
}
// Change page number
if (data.enableEditPageNumber) {
menuitem = this._window.document.createElement('menuitem');