Don't show multiple separators in PDF reader annotation context menu
This commit is contained in:
parent
035aac30f2
commit
f2e9efaf1d
1 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue