fix: local page

This commit is contained in:
lollipopkit
2023-08-02 23:33:56 +08:00
parent 0038ed347f
commit 43d3e576e2
4 changed files with 27 additions and 24 deletions

View File

@@ -43,13 +43,16 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
void initState() {
super.initState();
if (widget.initDir != null) {
_path = PathWithPrefix(widget.initDir!);
setState(() {
_path = PathWithPrefix(widget.initDir!);
});
} else {
sftpDir.then((dir) {
_path = PathWithPrefix(dir.path);
setState(() {
_path = PathWithPrefix(dir.path);
});
});
}
setState(() {});
}
@override