not working :facepalm:
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/RecoverWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/RecoverWalletViewModel.cs
@@ -23,6 +23,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
private string? _selectedTag;
private IEnumerable<string>? _suggestions;
private Mnemonic? _currentMnemonics;
+ private bool _isBusy;
public RecoverWalletViewModel(
NavigationStateViewModel navigationState,
@@ -71,16 +72,24 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
MinGapLimit = (int)minGapLimitIn;
}
});
+
+ IsBusyObservable = this
+ .WhenAnyValue(x => x.IsBusy)
+ .Select(x=>x)
+ .ObserveOn(RxApp.MainThreadScheduler);
}
private async Task OnNext(NavigationStateViewModel navigationState, WalletManager walletManager, Network network, string? walletName)
{
try
{
+ IsBusy = true;
var enterPassword = new EnterPasswordViewModel(
navigationState,
NavigationTarget.DialogScreen,
"Type the password of the wallet to be able to recover and click Continue.");
+ await Task.Delay(15_000);
+ IsBusy = false;
NavigateTo(enterPassword, NavigationTarget.DialogScreen);
@@ -113,6 +122,8 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
public IObservable<bool> FinishCommandCanExecute { get; }
+ public IObservable<bool> IsBusyObservable { get; }
+
public ICommand AdvancedRecoveryOptionsDialogCommand { get; }
private KeyPath AccountKeyPath { get; set; } = KeyPath.Parse("m/84'/0'/0'");
@@ -141,6 +152,12 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
set => this.RaiseAndSetIfChanged(ref _currentMnemonics, value);
}
+ private bool IsBusy
+ {
+ get => _isBusy;
+ set => this.RaiseAndSetIfChanged(ref _isBusy, value);
+ }
+
private void ValidateMnemonics(IValidationErrors errors)
{
if (CurrentMnemonics is { } && !CurrentMnemonics.IsValidChecksum)

MODIFY
WalletWasabi.Fluent/Views/AddWallet/RecoverWalletView.axaml
WalletWasabi.Fluent/Views/AddWallet/RecoverWalletView.axaml
Title="Enter recovery words" Caption="Type in your 12 recovery words and click Continue."
EnableBack="True"
EnableCancel="True" CancelContent="Cancel"
- EnableNext="True" NextContent="Finish">
+ EnableNext="True" NextContent="Finish"
+ x:CompileBindings="False" IsBusy="{Binding IsBusyObservable^}">
<StackPanel>
<DockPanel>
<PathIcon Name="IconCheckmark" Classes="checkMark" Margin="15 42 0 0" VerticalAlignment="Top"

not working :facepalm: