1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 00:50:49 +03:00
This commit is contained in:
Eugene Pankov 2020-02-01 12:15:24 +03:00
parent f09fb735a7
commit 1d76f6b056

View File

@ -170,6 +170,9 @@ export class LegacyContextMenu extends TabContextMenuItemProvider {
}
async getItems (tab: BaseTabComponent, _tabHeader?: TabHeaderComponent): Promise<Electron.MenuItemConstructorOptions[]> {
if (!this.contextMenuProviders) {
return []
}
if (tab instanceof BaseTerminalTabComponent) {
let items: Electron.MenuItemConstructorOptions[] = []
for (const p of this.contextMenuProviders) {