mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Merge pull request #151 from Sertonix/unmerge-menu-seperators
unmerge menus ignore seperators
This commit is contained in:
commit
2d88e44736
@ -49,7 +49,7 @@ function unmerge(menu, item) {
|
||||
}
|
||||
}
|
||||
|
||||
if (matchingItem.submenu == null || matchingItem.submenu.length === 0) {
|
||||
if (matchingItem.submenu == null || matchingItem.submenu.filter( ({type}) => type !== 'separator' ).length === 0) {
|
||||
menu.splice(matchingItemIndex, 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user