mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-22 17:21:53 +00:00
re-fixed #2054
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user