mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
data exporting & importing
This commit is contained in:
@@ -169,7 +169,8 @@ Future<file_selector.XFile?> selectFile({required List<String> ext}) async {
|
||||
acceptedTypeGroups: <file_selector.XTypeGroup>[typeGroup],
|
||||
);
|
||||
if (file == null) return null;
|
||||
if (!ext.contains(file?.path.split(".").last)) {
|
||||
if (!ext.contains(file.path.split(".").last)) {
|
||||
App.rootContext.showMessage(message: "Invalid file type");
|
||||
return null;
|
||||
}
|
||||
return file;
|
||||
|
Reference in New Issue
Block a user