mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 14:04:56 +00:00
moved menu zone handling into terminus-electron
This commit is contained in:
@@ -20,16 +20,18 @@ export class WinSCPContextMenu extends TabContextMenuItemProvider {
|
||||
if (!(tab instanceof SSHTabComponent) || !tab.connection) {
|
||||
return []
|
||||
}
|
||||
if (this.hostApp.platform !== Platform.Windows || !this.ssh.getWinSCPPath()) {
|
||||
return []
|
||||
}
|
||||
return [
|
||||
{
|
||||
const items = [{
|
||||
label: 'Open SFTP panel',
|
||||
click: () => tab.openSFTP(),
|
||||
}]
|
||||
if (this.hostApp.platform === Platform.Windows && this.ssh.getWinSCPPath()) {
|
||||
items.push({
|
||||
label: 'Launch WinSCP',
|
||||
click: (): void => {
|
||||
this.ssh.launchWinSCP(tab.session!)
|
||||
},
|
||||
},
|
||||
]
|
||||
})
|
||||
}
|
||||
return items
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user