From 1f51602406a9564c7143c93fabdb1abe2d963ae2 Mon Sep 17 00:00:00 2001 From: shillo Date: Thu, 22 Dec 2022 16:57:52 -0600 Subject: [PATCH] windows app dir --- lib/utilities/stack_file_system.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/utilities/stack_file_system.dart b/lib/utilities/stack_file_system.dart index 5177f1973..34d82f691 100644 --- a/lib/utilities/stack_file_system.dart +++ b/lib/utilities/stack_file_system.dart @@ -15,8 +15,7 @@ abstract class StackFileSystem { } else if (Platform.isLinux) { appDirectory = Directory("${Platform.environment['HOME']}/.stackwallet"); } else if (Platform.isWindows) { - // TODO: windows root .stackwallet dir location - throw Exception("Unsupported platform"); + appDirectory = await getApplicationSupportDirectory(); } else if (Platform.isMacOS) { // currently run in ipad mode?? throw Exception("Unsupported platform");