fix lurking wife mode memory leak.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
@@ -61,6 +61,15 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.Subscribe(async _ => await RewriteTableAsync())
.DisposeWith(_disposables);
+ Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode).ObserveOn(RxApp.MainThreadScheduler).Subscribe(x =>
+ {
+ foreach(var transaction in Transactions)
+ {
+ transaction.Refresh();
+ }
+
+ }).DisposeWith(_disposables);
+
this.WhenAnyValue(x => x.SelectedTransaction).Subscribe(transaction =>
{
if (Global.UiConfig.Autocopy is true)

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
@@ -22,15 +22,13 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
_model = model;
ClipboardNotificationVisible = false;
ClipboardNotificationOpacity = 0;
+ }
- //TODO: this should be disposed! Memory leak!
- Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode).Subscribe(x =>
+ public void Refresh ()
{
this.RaisePropertyChanged(nameof(AmountBtc));
this.RaisePropertyChanged(nameof(TransactionId));
this.RaisePropertyChanged(nameof(DateTime));
- });
-
}
public string DateTime => _model.DateTime.ToString("yyyy-MM-dd HH:mm", CultureInfo.InvariantCulture);

fix lurking wife mode memory leak.