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), Directory(path),
newDir, newDir,
); );
await File(FilePath.join(App.dataPath, 'local_path')).writeAsString(path); await File(FilePath.join(App.dataPath, 'local_path')).writeAsString(newPath);
} catch (e, s) { } catch (e, s) {
Log.error("IO", e, s); Log.error("IO", e, s);
return e.toString(); return e.toString();