#86 fix: docker loading forever

This commit is contained in:
lollipopkit
2023-08-08 20:31:35 +08:00
parent 173b7f6362
commit 58fbd62779
4 changed files with 43 additions and 34 deletions

View File

@@ -395,7 +395,7 @@ class _SftpPageState extends State<SftpPage> {
SftpReqType.download,
);
_sftp.add(req, completer: completer);
showRoundDialog(context: context, child: centerSizedLoading);
showLoadingDialog(context);
await completer.future;
context.pop();
@@ -458,10 +458,8 @@ class _SftpPageState extends State<SftpPage> {
TextButton(
onPressed: () async {
context.pop();
showRoundDialog(
context: context,
child: centerSizedLoading,
barrierDismiss: false,
showLoadingDialog(
context
);
final remotePath = _getRemotePath(file);
try {