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

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 404;
static const int build = 405;
static const String engine = "3.10.6";
static const String buildAt = "2023-08-02 20:14:57.880607";
static const int modifications = 4;
static const String buildAt = "2023-08-02 23:07:25.944886";
static const int modifications = 2;
}

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