fix: export logs action
This commit is contained in:
parent
a292114d68
commit
d9b56a95aa
1 changed files with 15 additions and 1 deletions
|
@ -187,7 +187,21 @@ Future<void> shareLogs(
|
|||
],
|
||||
);
|
||||
if (result?.action != null && result!.action == ButtonAction.second) {
|
||||
await exportLogs(context, zipFilePath);
|
||||
Future.delayed(
|
||||
const Duration(milliseconds: 200),
|
||||
() => shareDialog(
|
||||
context,
|
||||
context.l10n.exportLogs,
|
||||
saveAction: () async {
|
||||
final zipFilePath = await getZippedLogsFile(context);
|
||||
await exportLogs(context, zipFilePath);
|
||||
},
|
||||
sendAction: () async {
|
||||
final zipFilePath = await getZippedLogsFile(context);
|
||||
await exportLogs(context, zipFilePath, true);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue