fix: Save file
This commit is contained in:
parent
db79a96d08
commit
757ec7bb27
2 changed files with 4 additions and 3 deletions
|
|
@ -27,7 +27,8 @@ extension MatrixFileExtension on MatrixFile {
|
|||
element.click();
|
||||
element.remove();
|
||||
} else {
|
||||
if (!(await Permission.storage.request()).isGranted) return;
|
||||
if (PlatformInfos.isMobile &&
|
||||
!(await Permission.storage.request()).isGranted) return;
|
||||
final downloadsDir = PlatformInfos.isDesktop
|
||||
? (await getDownloadsDirectory()).path
|
||||
: Platform.isAndroid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue