fix & opt.

- fix: ssh paste
- opt.: docker logs & shell
This commit is contained in:
lollipopkit
2023-05-27 18:58:38 +08:00
parent 4f45ce3f50
commit 02494651fc
9 changed files with 36 additions and 55 deletions

View File

@@ -288,6 +288,9 @@ class _SSHPageState extends State<SSHPage> {
),
);
}
if (children.isEmpty) {
return;
}
_menuController.show(
context: context,
contextMenuBuilder: (context) {
@@ -343,7 +346,7 @@ class _SSHPageState extends State<SSHPage> {
_listen(session.stderr);
if (widget.initCmd != null) {
_terminal.write(widget.initCmd!);
_terminal.textInput(widget.initCmd!);
_terminal.keyInput(TerminalKey.enter);
}