Update backup_and_restore.dart
Now only accepts .backup-files
This commit is contained in:
parent
03741343be
commit
15a0958f2b
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ class BackupAndRestore extends ConsumerWidget {
|
|||
try {
|
||||
FilePickerResult? result =
|
||||
await FilePicker.platform
|
||||
.pickFiles(allowMultiple: false);
|
||||
.pickFiles(allowMultiple: false, type: FileType.custom, allowedExtensions: ["backup"]);
|
||||
|
||||
if (result != null && context.mounted) {
|
||||
ref.watch(doRestoreProvider(
|
||||
|
|
|
|||
Loading…
Reference in a new issue