mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
fix: local page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user