Fix lurking wife mode on transaction id in details
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionInfoTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionInfoTabViewModel.cs
+using System;
+using System.Reactive.Disposables;
+using System.Reactive.Linq;
+using ReactiveUI;
+using Splat;
using WalletWasabi.Gui.Controls.TransactionDetails.ViewModels;
using WalletWasabi.Gui.ViewModels;
@@ -7,10 +12,23 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public TransactionInfoTabViewModel(TransactionDetailsViewModel transaction) : base("")
{
+ Global = Locator.Current.GetService<Global>();
Transaction = transaction;
Title = $"Transaction ({transaction.TransactionId[0..10]}) Details";
}
+ public override void OnOpen(CompositeDisposable disposables)
+ {
+ Global.UiConfig.WhenAnyValue(x => x.LurkingWifeMode)
+ .ObserveOn(RxApp.MainThreadScheduler)
+ .Subscribe(x => Transaction.RaisePropertyChanged(nameof(Transaction.TransactionId)))
+ .DisposeWith(disposables);
+
+ base.OnOpen(disposables);
+ }
+
+ protected Global Global { get; }
+
public TransactionDetailsViewModel Transaction { get; }
}
}

Fix lurking wife mode on transaction id in details