add sortingpreference class
MODIFY
WalletWasabi.Gui/Controls/SortingArrow.cs
WalletWasabi.Gui/Controls/SortingArrow.cs
@@ -19,6 +19,8 @@ namespace WalletWasabi.Gui.Controls
{
public struct SortingPreference
{
+ public static SortingPreference DefaultValue = new SortingPreference(SortOrder.None, null);
+
public SortingPreference(SortOrder sortOrder, string propertyTarget)
{
SortOrder = sortOrder;

MODIFY
WalletWasabi.Gui/UiConfig.cs
WalletWasabi.Gui/UiConfig.cs
@@ -9,6 +9,7 @@ using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using WalletWasabi.Bases;
+using WalletWasabi.Gui.Controls;
using WalletWasabi.Gui.Converters;
using WalletWasabi.Gui.Models;
using WalletWasabi.Helpers;
@@ -27,6 +28,8 @@ namespace WalletWasabi.Gui
private bool _isCustomChangeAddress;
private bool _autocopy;
+ private SortingPreference _coinListViewSortingPreference;
+
public UiConfig() : base()
{
}
@@ -99,14 +102,11 @@ namespace WalletWasabi.Gui
set => RaiseAndSetIfChanged(ref _lockScreenPinHash, value);
}
-
- [JsonProperty(PropertyName = "ClosedWalletViewModelSortingPreference", DefaultValueHandling = DefaultValueHandling.Populate)]
+ [JsonProperty(PropertyName = "CoinListViewSortingPreference", DefaultValueHandling = DefaultValueHandling.Ignore)]
public SortingPreference CoinListViewSortingPreference
{
- get => _lockScreenPinHash;
- set => RaiseAndSetIfChanged(ref _lockScreenPinHash, value);
+ get => _coinListViewSortingPreference;
+ set => RaiseAndSetIfChanged(ref _coinListViewSortingPreference, value);
}
-
-
}
}

add sortingpreference class