This commit is contained in:
Eugene Pankov 2021-06-12 00:25:26 +02:00
parent fb4d5dc0cb
commit 019cba06d4
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -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 [