Skip to content
Permalink
Browse files

fix auto paste logic.

  • Loading branch information...
danwalmsley authored and lontivero committed Nov 6, 2018
1 parent 4950851 commit a166e5e3911617f1fdc5d2f3411fbd8b68fa0914
Showing with 5 additions and 2 deletions.
  1. +5 −2 WalletWasabi.Gui/Behaviors/PasteAddressOnClickBehavior.cs
@@ -38,9 +38,12 @@ protected override void OnAttached()
{
_disposables = new CompositeDisposable
{
Observable.FromEventPattern<RoutedEventArgs>(AssociatedObject, nameof(AssociatedObject.LostFocus)).Subscribe(args=>
AssociatedObject.GetObservable(TextBox.IsFocusedProperty).Subscribe(focused =>
{
PasteClipboardContentIfBitcoinAddress();
if(focused && string.IsNullOrWhiteSpace(AssociatedObject.Text))
{
PasteClipboardContentIfBitcoinAddress();
}
})
};

0 comments on commit a166e5e

Please sign in to comment.
You can’t perform that action at this time.