mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 01:17:14 +00:00
fixed #3138
This commit is contained in:
parent
fb4d5dc0cb
commit
019cba06d4
1 changed files with 2 additions and 2 deletions
|
@ -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 [
|
||||
|
|
Loading…
Reference in a new issue