Skip to content

Commit ca59398

Browse files
authored
Fix: Fixed issue where properties window could not navigate to other pages after returning from advanced settings (#15149)
1 parent b641dcb commit ca59398

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Files.App/ViewModels/Properties/MainPropertiesViewModel.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ public NavigationViewItemButtonStyleItem SelectedNavigationViewItem
2121
get => _SelectedNavigationViewItem;
2222
set
2323
{
24-
if (SetProperty(ref _SelectedNavigationViewItem, value) &&
25-
!_selectionChangedAutomatically)
24+
if (SetProperty(ref _SelectedNavigationViewItem, value))
2625
{
2726
var parameter = new PropertiesPageNavigationParameter
2827
{
@@ -47,8 +46,6 @@ public NavigationViewItemButtonStyleItem SelectedNavigationViewItem
4746

4847
_mainFrame?.Navigate(page, parameter, new EntranceNavigationTransitionInfo());
4948
}
50-
51-
_selectionChangedAutomatically = false;
5249
}
5350
}
5451

@@ -85,8 +82,6 @@ public NavigationViewItemButtonStyleItem SelectedNavigationViewItem
8582

8683
private readonly PropertiesPageNavigationParameter _parameter;
8784

88-
private bool _selectionChangedAutomatically { get; set; }
89-
9085
public IRelayCommand DoBackwardNavigationCommand { get; }
9186
public IAsyncRelayCommand SaveChangedPropertiesCommand { get; }
9287
public IRelayCommand CancelChangedPropertiesCommand { get; }
@@ -120,8 +115,6 @@ private void ExecuteDoBackwardNavigationCommand()
120115

121116
var pageTag = ((Page)_mainFrame.Content).Tag.ToString();
122117

123-
_selectionChangedAutomatically = true;
124-
125118
// Move selection indicator
126119
_SelectedNavigationViewItem =
127120
NavigationViewItems.First(x => string.Equals(x.ItemType.ToString(), pageTag, StringComparison.CurrentCultureIgnoreCase))

0 commit comments

Comments
 (0)