opt.: use ssh term to decompress (#519)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-08-04 11:40:38 +08:00
committed by GitHub
parent 493c86cacb
commit e3c885483b
24 changed files with 120 additions and 154 deletions

View File

@@ -353,7 +353,7 @@ class _ContainerPageState extends State<ContainerPage> {
),
],
),
actions: Btn.ok(onTap: (c) async {
actions: Btn.ok(onTap: () async {
context.pop();
await _showAddCmdPreview(
_buildAddCmd(
@@ -421,7 +421,7 @@ class _ContainerPageState extends State<ContainerPage> {
hint: 'unix:///run/user/1000/docker.sock',
suggestion: false,
),
actions: Btn.ok(onTap: (c) => _onSaveDockerHost(ctrl.text)).toList,
actions: Btn.ok(onTap: () => _onSaveDockerHost(ctrl.text)).toList,
);
}
@@ -438,7 +438,7 @@ class _ContainerPageState extends State<ContainerPage> {
libL10n.askContinue('${libL10n.delete} Image(${e.repository})'),
),
actions: Btn.ok(
onTap: (c) async {
onTap: () async {
context.pop();
final result = await _container.run('rmi ${e.id} -f');
if (result != null) {
@@ -483,7 +483,7 @@ class _ContainerPageState extends State<ContainerPage> {
)
],
),
actions: Btn.ok(onTap: (c) async {
actions: Btn.ok(onTap: () async {
context.pop();
final (result, err) = await context.showLoadingDialog(