Skip to content

Commit 768d020

Browse files
committed
Pathbar bug fix for folders with dots
1 parent ba85228 commit 768d020

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

Files UWP/Filesystem/ItemViewModel.cs

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,47 @@ public void SetAsFriendlyDate(DateTime d)
499499
}
500500
else // If item is from a past year
501501
{
502-
itemDate = d.Month + " " + d.Day + ", " + d.Year;
502+
string monthAsString = "Month";
503+
switch (d.Month)
504+
{
505+
case 1:
506+
monthAsString = "January";
507+
break;
508+
case 2:
509+
monthAsString = "February";
510+
break;
511+
case 3:
512+
monthAsString = "March";
513+
break;
514+
case 4:
515+
monthAsString = "April";
516+
break;
517+
case 5:
518+
monthAsString = "May";
519+
break;
520+
case 6:
521+
monthAsString = "June";
522+
break;
523+
case 7:
524+
monthAsString = "July";
525+
break;
526+
case 8:
527+
monthAsString = "August";
528+
break;
529+
case 9:
530+
monthAsString = "September";
531+
break;
532+
case 10:
533+
monthAsString = "October";
534+
break;
535+
case 11:
536+
monthAsString = "November";
537+
break;
538+
case 12:
539+
monthAsString = "December";
540+
break;
541+
}
542+
itemDate = monthAsString + " " + d.Day + ", " + d.Year;
503543
}
504544
}
505545

Files UWP/GenericFileBrowser.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,13 @@ private async void VisiblePath_TextChanged(object sender, KeyRoutedEventArgs e)
407407
await dialog.ShowAsync();
408408
}
409409
}
410+
else if (StorageFolder.GetFolderFromPathAsync(CurrentInput) != null)
411+
{
412+
await StorageFolder.GetFolderFromPathAsync(CurrentInput);
413+
App.ViewModel.TextState.isVisible = Visibility.Collapsed;
414+
MainPage.accessibleContentFrame.Navigate(typeof(GenericFileBrowser), CurrentInput);
415+
MainPage.accessibleAutoSuggestBox.PlaceholderText = "Search";
416+
}
410417
else
411418
{
412419
try

0 commit comments

Comments
 (0)