Merge pull request #3680 from Heap-Hop/master

Update file transfer.
This commit is contained in:
RustDesk 2023-03-16 18:48:52 +08:00 committed by GitHub
commit 939ebbc13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1312,6 +1312,7 @@ class _FileManagerViewState extends State<FileManagerView> {
},
dismissOnClicked: true));
}
menuItems.add(MenuEntryDivider());
} catch (e) {
debugPrint("buildBread fetchDirectory err=$e");
} finally {
@ -1320,7 +1321,6 @@ class _FileManagerViewState extends State<FileManagerView> {
}
}
}
menuItems.add(MenuEntryDivider());
mod_menu.showMenu(
context: context,
position: RelativeRect.fromLTRB(x, y, x, y),

View File

@ -283,7 +283,9 @@ class FileController {
}
Future<void> onReady() async {
if (isLocal) {
options.value.home = await bind.mainGetHomeDir();
}
options.value.showHidden = (await bind.sessionGetPeerOption(
id: sessionID,
name: isLocal ? "local_show_hidden" : "remote_show_hidden"))