Merge pull request #6093 from sahilyeole/fix/remote_home_button

Fix remote home button in file transfer
This commit is contained in:
RustDesk 2023-10-20 13:52:22 +08:00 committed by GitHub
commit 807dc7d220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,7 @@ class FileController {
required this.getOtherSideDirectoryData});
String get homePath => options.value.home;
void set homePath(String path) => options.value.home = path;
OverlayDialogManager? get dialogManager => rootState.target?.dialogManager;
String get shortPath {
@ -376,6 +377,11 @@ class FileController {
}
void goToHomeDirectory() {
if (isLocal) {
openDirectory(homePath);
return;
}
homePath = "";
openDirectory(homePath);
}