Check for same value only in Selected mode
MODIFY
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
WalletWasabi.Fluent/ViewModels/NavBar/NavBarViewModel.cs
@@ -116,14 +116,14 @@ namespace WalletWasabi.Fluent.ViewModels.NavBar
}
private void SetSelectedItem(NavBarItemViewModel? value)
+ {
+ if (value is null || value.Mode == NavBarItemSelectionMode.Selected)
{
if (_selectedItem == value)
{
return;
}
- if (value is null || value.Mode == NavBarItemSelectionMode.Selected)
- {
if (_selectedItem is { })
{
_selectedItem.IsSelected = false;

Check for same value only in Selected mode