Skip to content

Commit

Permalink
Fix: Fixed crash with moving into an empty folder in column layout (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu committed Jun 25, 2023
1 parent 9e2a707 commit ee54f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/Views/LayoutModes/ColumnViewBrowser.xaml.cs
Expand Up @@ -326,7 +326,7 @@ public void MoveFocusToNextBlade(int currentBladeIndex)
if (activeBladeColumnViewBase is not null)
{
activeBladeColumnViewBase.FileList.SelectedIndex = 0;
var selectedItem = activeBladeColumnViewBase.FileList.Items.First() as ListedItem;
var selectedItem = activeBladeColumnViewBase.FileList.Items.FirstOrDefault() as ListedItem;
if (selectedItem is not null)
UpdatePreviewPaneSelection(new List<ListedItem>() { selectedItem });
}
Expand Down

0 comments on commit ee54f83

Please sign in to comment.