add psbt workflow to welcome screen
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/HardwareWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/HardwareWalletViewModel.cs
+using System;
+using System.Reactive.Disposables;
+using ReactiveUI;
using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Wallets
@@ -6,6 +9,16 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
{
internal HardwareWalletViewModel(Wallet wallet) : base(wallet)
{
+ PsbtWorkflowEnabled = Services.UiConfig.UsePsbtWorkflow;
+ }
+
+ protected override void OnNavigatedTo(bool isInHistory, CompositeDisposable disposables)
+ {
+ base.OnNavigatedTo(isInHistory, disposables);
+
+ Services.UiConfig.WhenAnyValue(x => x.UsePsbtWorkflow)
+ .Subscribe(value => PsbtWorkflowEnabled = value)
+ .DisposeWith(disposables);
}
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
@@ -35,6 +35,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
[AutoNotify] private int _layoutIndex;
[AutoNotify] private double _widthSource;
[AutoNotify] private double _heightSource;
+ [AutoNotify] private bool _psbtWorkflowEnabled;
[AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isSmallLayout;
[AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isNormalLayout;
[AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isWideLayout;

add psbt workflow to welcome screen