Skip to content

Commit 18ff34e

Browse files
authored
Fix: Clear highlight in the last blade (#11903)
1 parent 4096d2f commit 18ff34e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Files.App/Views/LayoutModes/ColumnViewBase.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private void ColumnViewBase_ItemInvoked(object? sender, EventArgs e)
6060
openedFolderPresenter = FileList.ContainerFromItem(FileList.SelectedItem) as ListViewItem;
6161
}
6262

63-
private void ClearOpenedFolderSelectionIndicator()
63+
internal void ClearOpenedFolderSelectionIndicator()
6464
{
6565
if (openedFolderPresenter is null)
6666
return;

src/Files.App/Views/LayoutModes/ColumnViewBrowser.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,10 @@ private void CloseUnnecessaryColumns(ColumnParam column)
429429
var destComponents = StorageFileExtensions.GetDirectoryPathComponents(column.NavPathParam);
430430
var (_, relativeIndex) = GetLastCommonAndRelativeIndex(destComponents, columnPath, columnFirstPath);
431431
if (relativeIndex >= 0)
432+
{
433+
ColumnHost.ActiveBlades[relativeIndex].FindDescendant<ColumnViewBase>()?.ClearOpenedFolderSelectionIndicator();
432434
DismissOtherBlades(relativeIndex);
435+
}
433436
}
434437

435438
private (int, int) GetLastCommonAndRelativeIndex(List<PathBoxItem> destComponents, string columnPath, string columnFirstPath)

0 commit comments

Comments
 (0)