Separate and add comment
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
@@ -220,14 +220,21 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
});
- this.WhenAnyValue(x => x.Address, x => x.CustomChangeAddress)
+ // Triggering the detection of same address values.
+ this.WhenAnyValue(x => x.Address)
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(_ =>
{
- this.RaisePropertyChanged(nameof(Address));
this.RaisePropertyChanged(nameof(CustomChangeAddress));
});
+ this.WhenAnyValue(x => x.CustomChangeAddress)
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(_ =>
+ {
+ this.RaisePropertyChanged(nameof(Address));
+ });
+
FeeRateCommand = ReactiveCommand.Create(ChangeFeeRateDisplay, outputScheduler: RxApp.MainThreadScheduler);
OnAddressPasteCommand = ReactiveCommand.Create((BitcoinUrlBuilder url) =>

Separate and add comment