chore: Follow up pick files with file selector

This commit is contained in:
Krille 2024-10-04 10:04:09 +02:00
commit fe06f2efb3
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
8 changed files with 36 additions and 25 deletions

View file

@ -135,7 +135,10 @@ class SettingsController extends State<Settings> {
name: result.path,
);
} else {
final result = await selectFiles(context, extensions: imageExtensions);
final result = await selectFiles(
context,
type: FileSelectorType.images,
);
final pickedFile = result.firstOrNull;
if (pickedFile == null) return;
file = MatrixFile(