mirror of
https://github.com/Eugeny/tabby.git
synced 2025-01-06 13:44:36 +08:00
fixed #3138
This commit is contained in:
parent
fb4d5dc0cb
commit
019cba06d4
@ -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 New Issue
Block a user