mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
fix remote home button
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user