Merge pull request #6093 from sahilyeole/fix/remote_home_button
Fix remote home button in file transfer
This commit is contained in:
commit
807dc7d220
@ -261,6 +261,7 @@ class FileController {
|
|||||||
required this.getOtherSideDirectoryData});
|
required this.getOtherSideDirectoryData});
|
||||||
|
|
||||||
String get homePath => options.value.home;
|
String get homePath => options.value.home;
|
||||||
|
void set homePath(String path) => options.value.home = path;
|
||||||
OverlayDialogManager? get dialogManager => rootState.target?.dialogManager;
|
OverlayDialogManager? get dialogManager => rootState.target?.dialogManager;
|
||||||
|
|
||||||
String get shortPath {
|
String get shortPath {
|
||||||
@ -376,6 +377,11 @@ class FileController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void goToHomeDirectory() {
|
void goToHomeDirectory() {
|
||||||
|
if (isLocal) {
|
||||||
|
openDirectory(homePath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
homePath = "";
|
||||||
openDirectory(homePath);
|
openDirectory(homePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user