This commit is contained in:
lollipopkit
2023-08-10 18:05:24 +08:00
parent cf1c9643b9
commit 4788f1dddc
8 changed files with 56 additions and 47 deletions

View File

@@ -663,18 +663,21 @@ class _SftpPageState extends State<SftpPage> {
}
} catch (e, trace) {
_logger.warning('list dir failed', e, trace);
Future.delayed(const Duration(milliseconds: 177), () => showRoundDialog(
context: context,
title: Text(_s.error),
child: Text(e.toString()),
actions: [
TextButton(
onPressed: () => context.pop(),
child: Text(_s.ok),
)
],
));
await _backward();
Future.delayed(
const Duration(milliseconds: 177),
() => showRoundDialog(
context: context,
title: Text(_s.error),
child: Text(e.toString()),
actions: [
TextButton(
onPressed: () => context.pop(),
child: Text(_s.ok),
)
],
),
);
}
}