new: upgrade on macos
This commit is contained in:
@@ -37,7 +37,7 @@ class LocalStoragePage extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _LocalStoragePageState extends State<LocalStoragePage> {
|
||||
PathWithPrefix? _path;
|
||||
LocalPath? _path;
|
||||
late S _s;
|
||||
|
||||
@override
|
||||
@@ -45,12 +45,12 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
|
||||
super.initState();
|
||||
if (widget.initDir != null) {
|
||||
setState(() {
|
||||
_path = PathWithPrefix(widget.initDir!);
|
||||
_path = LocalPath(widget.initDir!);
|
||||
});
|
||||
} else {
|
||||
sftpDir.then((dir) {
|
||||
setState(() {
|
||||
_path = PathWithPrefix(dir.path);
|
||||
_path = LocalPath(dir.path);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import '../../../core/extension/numx.dart';
|
||||
import '../../../core/extension/stringx.dart';
|
||||
import '../../../core/route.dart';
|
||||
import '../../../core/utils/misc.dart';
|
||||
import '../../../core/utils/platform.dart' hide pathJoin;
|
||||
import '../../../core/utils/platform.dart';
|
||||
import '../../../core/utils/ui.dart';
|
||||
import '../../../data/model/server/server_private_info.dart';
|
||||
import '../../../data/model/sftp/absolute_path.dart';
|
||||
|
||||
Reference in New Issue
Block a user