From 160d0df9351a720bd9fb2e6850c048e4e95c334e Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 10 Nov 2024 17:48:12 +0800 Subject: [PATCH] fix setting new download path --- lib/foundation/local.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foundation/local.dart b/lib/foundation/local.dart index c9469b9..8876b84 100644 --- a/lib/foundation/local.dart +++ b/lib/foundation/local.dart @@ -163,7 +163,7 @@ class LocalManager with ChangeNotifier { Directory(path), newDir, ); - await File(FilePath.join(App.dataPath, 'local_path')).writeAsString(path); + await File(FilePath.join(App.dataPath, 'local_path')).writeAsString(newPath); } catch (e, s) { Log.error("IO", e, s); return e.toString();