Skip to content

Commit

Permalink
add button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NO-ob committed Oct 28, 2022
1 parent 5ca26e4 commit 404a6c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/pages/settings/backup_restore_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class _BackupRestorePageState extends State<BackupRestorePage> {
title: const Text('Duplicate file detected!'),
content: Text('The file "$fileName" already exists. Do you want to overwrite it? If you choose no, the backup will be cancelled.'),
actions: [
TextButton(
ElevatedButton(
onPressed: () => Navigator.of(context).pop(false),
child: const Text('No'),
),
TextButton(
ElevatedButton(
onPressed: () async {
Navigator.of(context).pop(true);
await ServiceHandler.deleteFileFromSAFDirectory(backupPath, fileName);
Expand Down

0 comments on commit 404a6c0

Please sign in to comment.