File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public YourHome()
14
14
InitializeComponent ( ) ;
15
15
}
16
16
17
- protected override void OnNavigatedTo ( NavigationEventArgs eventArgs )
17
+ protected override async void OnNavigatedTo ( NavigationEventArgs eventArgs )
18
18
{
19
19
base . OnNavigatedTo ( eventArgs ) ;
20
20
App . CurrentInstance . InstanceViewModel . IsPageTypeNotHome = false ;
@@ -29,6 +29,9 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
29
29
App . CurrentInstance . NavigationToolbar . CanGoForward = App . CurrentInstance . ContentFrame . CanGoForward ;
30
30
App . CurrentInstance . NavigationToolbar . CanNavigateToParent = false ;
31
31
32
+ // Set path of working directory empty
33
+ await App . CurrentInstance . FilesystemViewModel . SetWorkingDirectory ( "Home" ) ;
34
+
32
35
// Clear the path UI and replace with Favorites
33
36
App . CurrentInstance . NavigationToolbar . PathComponents . Clear ( ) ;
34
37
string componentLabel = parameters ;
Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ public async Task SetWorkingDirectory(string value)
116
116
_customPath = null ;
117
117
}
118
118
119
+ if ( value == "Home" )
120
+ {
121
+ _currentStorageFolder = null ;
122
+ }
123
+
119
124
NotifyPropertyChanged ( nameof ( WorkingDirectory ) ) ;
120
125
}
121
126
You can’t perform that action at this time.
0 commit comments