This commit is contained in:
lollipopkit
2023-11-13 00:42:42 -06:00
parent b2f6094a1d
commit d3a6b1639c
14 changed files with 34 additions and 50 deletions

View File

@@ -31,7 +31,13 @@ const _echoPWD = 'echo \$PWD';
class SSHPage extends StatefulWidget {
final ServerPrivateInfo spi;
final String? initCmd;
const SSHPage({Key? key, required this.spi, this.initCmd}) : super(key: key);
final bool pop;
const SSHPage({
Key? key,
required this.spi,
this.initCmd,
this.pop = true,
}) : super(key: key);
@override
_SSHPageState createState() => _SSHPageState();
@@ -362,7 +368,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
}
await session.done;
if (mounted) {
if (mounted && widget.pop) {
context.pop();
}
}