Make sure to select back the same document.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/PinPadViewModel.cs
@@ -92,6 +92,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
public static async Task UnlockAsync(Global global, HwiEnumerateEntry hwiEntry)
+ {
+ // Make sure to select back the document that was selected.
+ var selectedDocument = IoC.Get<IShell>().SelectedDocument;
+ try
{
using (var cts = new CancellationTokenSource(TimeSpan.FromMinutes(3)))
{
@@ -116,5 +120,13 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
await client.SendPinAsync(hwiEntry.Model, hwiEntry.Path, int.Parse(maskedPin), cts.Token);
}
}
+ finally
+ {
+ if (selectedDocument != null)
+ {
+ IoC.Get<IShell>().Select(selectedDocument);
+ }
+ }
+ }
}
}

Make sure to select back the same document.