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

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 636;
static const String engine = "3.13.8";
static const String buildAt = "2023-11-07 19:05:38";
static const int build = 638;
static const String engine = "3.13.9";
static const String buildAt = "2023-11-12 17:32:24";
static const int modifications = 2;
static const int script = 26;
}

View File

@@ -72,7 +72,6 @@
"experimentalFeature": "Experimentelles Feature",
"export": "Export",
"extraArgs": "Extra args",
"fabOpenSSHSession": "Klicken Sie auf die FAB, um eine Sitzung zu öffnen",
"failed": "Failed",
"feedback": "Feedback",
"feedbackOnGithub": "Wenn du Fragen hast, stelle diese bitte auf Github.",

View File

@@ -72,7 +72,6 @@
"experimentalFeature": "Experimental feature",
"export": "Export",
"extraArgs": "Extra args",
"fabOpenSSHSession": "Click the FAB to open a session",
"failed": "Failed",
"feedback": "Feedback",
"feedbackOnGithub": "If you have any questions, please feedback on Github.",

View File

@@ -72,7 +72,6 @@
"experimentalFeature": "Fitur eksperimental",
"export": "Ekspor",
"extraArgs": "Args ekstra",
"fabOpenSSHSession": "Klik FAB untuk membuka sesi",
"failed": "Gagal",
"feedback": "Masukan",
"feedbackOnGithub": "Jika Anda memiliki pertanyaan, silakan umpan balik tentang GitHub.",

View File

@@ -72,7 +72,6 @@
"experimentalFeature": "实验性功能",
"export": "导出",
"extraArgs": "额外参数",
"fabOpenSSHSession": "点击右下FAB来开启新的SSH终端",
"failed": "失败",
"feedback": "反馈",
"feedbackOnGithub": "如果你有任何问题请在GitHub反馈",

View File

@@ -72,7 +72,6 @@
"experimentalFeature": "實驗性功能",
"export": "導出",
"extraArgs": "額外參數",
"fabOpenSSHSession": "點擊右下FAB來開啟新的SSH終端",
"failed": "失敗",
"feedback": "反饋",
"feedbackOnGithub": "如果你有任何問題請在GitHub反饋",

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();
}
}

View File

@@ -49,7 +49,10 @@ class _SSHTabPageState extends State<SSHTabPage>
UIs.width7,
InkWell(
borderRadius: BorderRadius.circular(17),
child: const Padding(padding: EdgeInsets.all(7), child: Icon(Icons.close, size: 17),),
child: const Padding(
padding: EdgeInsets.all(7),
child: Icon(Icons.close, size: 17),
),
onTap: () async {
final confirm = await context.showRoundDialog<bool>(
title: Text(l10n.attention),
@@ -110,6 +113,7 @@ class _SSHTabPageState extends State<SSHTabPage>
_tabIds[name] = SSHPage(
key: key,
spi: spi,
pop: false,
);
_tabKeys[name] = key;
_refreshTabs();