mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 00:56:06 +00:00
fixed #3138
This commit is contained in:
@@ -16,11 +16,11 @@ export class WinSCPContextMenu extends TabContextMenuItemProvider {
|
||||
super()
|
||||
}
|
||||
|
||||
async getItems (tab: BaseTabComponent, tabHeader?: TabHeaderComponent): Promise<MenuItemOptions[]> {
|
||||
async getItems (tab: BaseTabComponent, _tabHeader?: TabHeaderComponent): Promise<MenuItemOptions[]> {
|
||||
if (!(tab instanceof SSHTabComponent) || !tab.connection) {
|
||||
return []
|
||||
}
|
||||
if (this.hostApp.platform !== Platform.Windows || tabHeader || !this.ssh.getWinSCPPath()) {
|
||||
if (this.hostApp.platform !== Platform.Windows || !this.ssh.getWinSCPPath()) {
|
||||
return []
|
||||
}
|
||||
return [
|
||||
|
Reference in New Issue
Block a user