mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-27 00:50:49 +03:00
re-fixed #2054
This commit is contained in:
parent
f09fb735a7
commit
1d76f6b056
@ -170,6 +170,9 @@ export class LegacyContextMenu extends TabContextMenuItemProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getItems (tab: BaseTabComponent, _tabHeader?: TabHeaderComponent): Promise<Electron.MenuItemConstructorOptions[]> {
|
async getItems (tab: BaseTabComponent, _tabHeader?: TabHeaderComponent): Promise<Electron.MenuItemConstructorOptions[]> {
|
||||||
|
if (!this.contextMenuProviders) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
if (tab instanceof BaseTerminalTabComponent) {
|
if (tab instanceof BaseTerminalTabComponent) {
|
||||||
let items: Electron.MenuItemConstructorOptions[] = []
|
let items: Electron.MenuItemConstructorOptions[] = []
|
||||||
for (const p of this.contextMenuProviders) {
|
for (const p of this.contextMenuProviders) {
|
||||||
|
Loading…
Reference in New Issue
Block a user