Skip to content

Commit e0f60a4

Browse files
authored
Allow navigating to hidden folders from path bar (#2441)
1 parent d4b8bff commit e0f60a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Files/Views/ModernShellPage.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,9 @@ public async void CheckPathInput(ItemViewModel instance, string currentInput, st
499499
var item = await FilesystemTasks.Wrap(() => DrivesManager.GetRootFromPathAsync(currentInput));
500500

501501
var resFolder = await FilesystemTasks.Wrap(() => StorageFileExtensions.DangerousGetFolderWithPathFromPathAsync(currentInput, item));
502-
if (resFolder)
502+
if (resFolder || FilesystemViewModel.CheckFolderAccessWithWin32(currentInput))
503503
{
504-
var pathToNavigate = resFolder.Result.Path;
504+
var pathToNavigate = resFolder.Result?.Path ?? currentInput;
505505
ContentFrame.Navigate(AppSettings.GetLayoutType(),
506506
new NavigationArguments()
507507
{

0 commit comments

Comments
 (0)