Remove unnecessary Sync
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
@@ -437,7 +437,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
Global.UiConfig
.WhenAnyValue(x => x.LurkingWifeMode)
- .Synchronize() // To ensure thread safety.
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(_ => this.RaisePropertyChanged(nameof(SelectedAmount)))
.DisposeWith(Disposables);
@@ -491,7 +490,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
Global.Config
.WhenAnyValue(x => x.MixUntilAnonymitySet)
- .Synchronize() // To ensure thread safety.
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(x =>
{

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinViewModel.cs
@@ -68,17 +68,14 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.DisposeWith(Disposables);
Global.BitcoinStore.HashChain
- .WhenAnyValue(x => x.TipHeight)
- .Throttle(TimeSpan.FromMilliseconds(100))
- .Select(x => new Height(x))
- .Merge(Model.WhenAnyValue(x => x.Height))
+ .WhenAnyValue(x => x.TipHeight).Select(_ => Unit.Default)
+ .Merge(Model.WhenAnyValue(x => x.Height).Select(_ => Unit.Default))
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(_ => this.RaisePropertyChanged(nameof(Confirmations)))
.DisposeWith(Disposables);
Global.UiConfig
.WhenAnyValue(x => x.LurkingWifeMode)
- .Synchronize()
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(_ =>
{

Remove unnecessary Sync