mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 03:32:06 +00:00
Do not create Mangayomi folder inside AppDir
macOS and iOS already create a separate "Mangayomi" folder. There is no need to nest the downloads and backup folders in another "Mangayomi" folder.
This commit is contained in:
parent
4d564b9308
commit
5e43cf0468
1 changed files with 2 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ class StorageProvider {
|
|||
directory = Directory("/storage/emulated/0/Mangayomi/");
|
||||
} else {
|
||||
final dir = await getApplicationDocumentsDirectory();
|
||||
if (Platform.isIOS || Platform.isMacOS) return dir;
|
||||
directory = Directory(path.join(dir.path, 'Mangayomi'));
|
||||
}
|
||||
return directory;
|
||||
|
|
@ -92,6 +93,7 @@ class StorageProvider {
|
|||
} else {
|
||||
final dir = await getApplicationDocumentsDirectory();
|
||||
final p = dPath.isEmpty ? dir.path : dPath;
|
||||
if (Platform.isIOS || Platform.isMacOS) return Directory(p);
|
||||
directory = Directory(path.join(p, 'Mangayomi'));
|
||||
}
|
||||
return directory;
|
||||
|
|
|
|||
Loading…
Reference in a new issue