diff --git a/MSIXplainer/MainPage.xaml b/MSIXplainer/MainPage.xaml index de58ca5..f275cb2 100644 --- a/MSIXplainer/MainPage.xaml +++ b/MSIXplainer/MainPage.xaml @@ -356,7 +356,8 @@ - @@ -519,9 +520,10 @@ diff --git a/MSIXplainer/MainPage.xaml.cs b/MSIXplainer/MainPage.xaml.cs index a6c67bc..00dfdee 100644 --- a/MSIXplainer/MainPage.xaml.cs +++ b/MSIXplainer/MainPage.xaml.cs @@ -97,6 +97,8 @@ private async void NavView_ItemInvoked(NavigationView sender, NavigationViewItem switch (invoked.Tag) { case "apps": + ExitCompareMode(); + ExitSettingsMode(); await OpenAppsPaneAsync(); break; @@ -195,6 +197,17 @@ private void ViewFinding_Click(object sender, RoutedEventArgs e) ViewModel.SelectedFinding = finding; } + /// + /// Closes the finding detail pane. Clears the OverviewFindingsList selection + /// explicitly first so the TwoWay binding can't immediately re-push the old + /// selection back into ViewModel.SelectedFinding once we null it. + /// + private void OnCloseFindingClick(object sender, RoutedEventArgs e) + { + OverviewFindingsList.SelectedItem = null; + ViewModel.SelectedFinding = null; + } + /// /// Copies a manifest property value to the clipboard. Wraps the clipboard /// call in try/catch so a transient clipboard failure never bubbles up as