add accidentally removed code back to history tab.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/HistoryTabViewModel.cs
@@ -64,6 +64,14 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
.ObserveOn(RxApp.MainThreadScheduler)
.Subscribe(async _ => await RewriteTableAsync())
.DisposeWith(_disposables);
+
+ this.WhenAnyValue(x => x.SelectedTransaction).Subscribe(transaction =>
+ {
+ if (Global.UiConfig.Autocopy is true)
+ {
+ transaction?.CopyToClipboard();
+ }
+ });
}
public override bool OnClose()

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
using Avalonia.Threading;
using NBitcoin;
using ReactiveUI;
-using System;
using System.Globalization;
-using System.Reactive.Disposables;
using System.Threading;
using System.Threading.Tasks;
using WalletWasabi.Gui.ViewModels;
@@ -16,6 +14,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private TransactionInfo _model;
private bool _clipboardNotificationVisible;
private double _clipboardNotificationOpacity;
+ private long _copyNotificationsInprocess = 0;
public TransactionViewModel(TransactionInfo model)
{
@@ -48,8 +47,6 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _clipboardNotificationOpacity, value);
}
- private long _copyNotificationsInprocess = 0;
-
public void CopyToClipboard()
{
Application.Current.Clipboard.SetTextAsync(TransactionId).GetAwaiter().GetResult();

add accidentally removed code back to history tab.