add fee display format in settings
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
@@ -914,6 +914,15 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(x => IsCustomFee = x)
.DisposeWith(disposables);
+ Global.UiConfig.WhenAnyValue(x => x.FeeDisplayFormat)
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(x =>
+ {
+ FeeDisplayFormat = (FeeDisplayFormat)x;
+ SetFeesAndTexts();
+ })
+ .DisposeWith(disposables);
+
this.WhenAnyValue(x => x.IsCustomFee)
.Where(x => !x)
.ObserveOn(RxApp.MainThreadScheduler)

MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -168,9 +168,7 @@ namespace WalletWasabi.Gui.Tabs
this.WhenAnyValue(x => x.SelectedFeeDisplayFormat)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(x =>
- Global.UiConfig.FeeDisplayFormat = (int)x
- );
+ .Subscribe(x => Global.UiConfig.FeeDisplayFormat = (int)x);
}
private bool TabOpened { get; set; }
@@ -321,6 +319,11 @@ namespace WalletWasabi.Gui.Tabs
.Subscribe(_ => Global.UiConfig.ToFile())
.DisposeWith(disposables);
+ Global.UiConfig.WhenAnyValue(x => x.FeeDisplayFormat)
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(x => SelectedFeeDisplayFormat = (FeeDisplayFormat)x)
+ .DisposeWith(disposables);
+
base.OnOpen(disposables);
}
finally

MODIFY
WalletWasabi.Gui/UiConfig.cs
WalletWasabi.Gui/UiConfig.cs
@@ -28,6 +28,7 @@ namespace WalletWasabi.Gui
private bool _isCustomFee;
private bool _isCustomChangeAddress;
private bool _autocopy;
+ private int _feeDisplayFormat;
public UiConfig() : base()
{
@@ -47,7 +48,11 @@ namespace WalletWasabi.Gui
[DefaultValue(0)]
[JsonProperty(PropertyName = "FeeDisplayFormat", DefaultValueHandling = DefaultValueHandling.Populate)]
- public int FeeDisplayFormat { get; internal set; }
+ public int FeeDisplayFormat
+ {
+ get => _feeDisplayFormat;
+ set => RaiseAndSetIfChanged(ref _feeDisplayFormat, value);
+ }
[DefaultValue("")]
[JsonProperty(PropertyName = "LastActiveTab", DefaultValueHandling = DefaultValueHandling.Populate)]

add fee display format in settings