fix setting new download path

This commit is contained in:
2024-11-10 17:48:12 +08:00
parent 6a60194ffb
commit 160d0df935

View File

@@ -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();