del file_manager pub;add send files

This commit is contained in:
csf
2022-03-09 22:43:05 +08:00
parent e2b672feb9
commit b9b8513423
5 changed files with 208 additions and 552 deletions

View File

@@ -135,7 +135,7 @@ class FfiModel with ChangeNotifier {
} else if (name == 'chat') {
FFI.chatModel.receive(evt['text'] ?? "");
} else if (name == 'file_dir') {
FFI.remoteFileModel.tryUpdateRemoteDir(evt['value'] ?? "");
FFI.fileModel.tryUpdateDir(evt['value'] ?? "",false);
}
}
if (pos != null) FFI.cursorModel.updateCursorPosition(pos);
@@ -695,7 +695,7 @@ class FFI {
static final canvasModel = CanvasModel();
static final serverModel = ServerModel();
static final chatModel = ChatModel();
static final remoteFileModel = RemoteFileModel();
static final fileModel = FileModel();
static String getId() {
return getByName('remote_id');