From cbd7158ffd8592c8ad140988f231ca831463bd94 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Tue, 1 Nov 2022 14:35:54 +1300 Subject: [PATCH] Fixes exception caused by exporting logs on MacOS --- lib/utils/storage/logs_storage.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/storage/logs_storage.dart b/lib/utils/storage/logs_storage.dart index 5491923..907fbea 100644 --- a/lib/utils/storage/logs_storage.dart +++ b/lib/utils/storage/logs_storage.dart @@ -17,7 +17,7 @@ class LogsStorage { Future get _localPath async { var directory; - if (Platform.isIOS) { + if (Platform.isIOS || Platform.isMacOS) { directory = await getApplicationDocumentsDirectory(); } else { directory = await getExternalStorageDirectory();