Delete PIN contents on refocus.
MODIFY
WalletWasabi.Gui/Controls/LockScreen/PinLockScreen.xaml.cs
WalletWasabi.Gui/Controls/LockScreen/PinLockScreen.xaml.cs
@@ -33,7 +33,11 @@ namespace WalletWasabi.Gui.Controls.LockScreen
this.WhenAnyValue(x => x.IsLocked)
.Where(x => x)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(_ => inputField.Focus());
+ .Subscribe(_ =>
+ {
+ inputField.Text = string.Empty;
+ inputField.Focus();
+ });
}
private void InitializeComponent()

MODIFY
WalletWasabi.Gui/Controls/LockScreen/PinLockScreenViewModel.cs
WalletWasabi.Gui/Controls/LockScreen/PinLockScreenViewModel.cs
@@ -90,6 +90,7 @@ namespace WalletWasabi.Gui.Controls.LockScreen
if (ParentVM.PinHash == HashHelpers.GenerateSha256Hash(x))
{
ParentVM.IsLocked = false;
+ PinInput = string.Empty;
}
});

Delete PIN contents on refocus.